Standalone ReactNative Packager without framework code.
- bundle-split, solution from facebook/react-native#10804
- use module name as before (ps: core.bundle and app.bundle are different bundle session, so module ids may conflict)
"devDependencies": {
"rn-packager": "~0.12.0",
"react-native": "0.42.3",
"react": "~15.4.1"
}Now u can use manifest.json file to generate core modules.
- Bundle ur core bundle and output
manifest.json - Bundle ur app bundle with
manifest.jsonthat Step 1 generated.
$ rnpackager bundle --entry-file node_modules/react-native/Libraries/react-native/react-native.js --bundle-output core.ios.bundle --platform ios --manifest-output core.ios.manifest.jsonrnpackager bundle --entry-file foo.js --bundle-output foo.ios.bundle --platform ios --manifest-file core.ios.manifest.json$ rnpackager start$ cd tests
$ npm i
$ rnpackager startvisit: