Skip to content

A very basic debundler for Javascript bundles compiled with React Native's bundler

Notifications You must be signed in to change notification settings

nickw444/rn-debundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rn-debundle

A very basic debundler for Javascript bundles compiled with React Native's bundler.

Debundles a large React Native bundle by walking the compiled AST and extracts individual module declarations and writes them to their own modules & attempts to resolve dependeny import relationships.

Install

npm install -g rn-debundle

Usage

rn-debundle main.jsbundle ./my-output-dir

Demo

Input

__d(function() {
  "use strict";
}, 0, []);
__d(function(v) {
  "use strict";
}, 1, [0]);

var a = "foo bar baz";

Output

main.js

var a = 'foo bar baz';

mod_0.js

'use strict';

mod_1.js

import v from './mod_0';
'use strict';

About

A very basic debundler for Javascript bundles compiled with React Native's bundler

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published