mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Breaking change: Move bundle to private-cli
Summary: @public We need to start using the `private-cli` for the new asset system. Note this is a breaking change! People will have to upgrade their workflows/scripts to start using the new cli. Otherwise we'd need to build a thin adapter that is aware of both APIs which is something we;d like to avoid. The major API changes are: - API is now `entry-file` based instead of `url` based. - /s/--out/--bundle-output - /s/--out/--sourcemap-output Also these parameters have no longer default values, you need to specify them. For instance, if you want to generate the sourcemaps you need to pass in the `--sourcemap-output` option Lastly, additional project roots or asset roots need to be specified on the `rn-cli.config.js`. Reviewed By: @frantic Differential Revision: D2533877 fb-gh-sync-id: a45f9095fdf9442a9106ea7bb6a6b7f651d25273
This commit is contained in:
committed by
facebook-github-bot-9
parent
793c3564ff
commit
a102e6f587
@@ -4,23 +4,20 @@ var blacklist = require('./node_modules/react-native/packager/blacklist');
|
||||
|
||||
var config = {
|
||||
getProjectRoots() {
|
||||
return this._getRoots();
|
||||
return [__dirname];
|
||||
},
|
||||
|
||||
getAssetRoots() {
|
||||
return this._getRoots();
|
||||
// speficy where to look for assets
|
||||
return [];
|
||||
},
|
||||
|
||||
getBlacklistRE() {
|
||||
return blacklist('');
|
||||
getBlacklistRE(platform) {
|
||||
return blacklist(platform);
|
||||
},
|
||||
|
||||
getTransformModulePath() {
|
||||
return require.resolve('./node_modules/react-native/packager/transformer');
|
||||
},
|
||||
|
||||
_getRoots() {
|
||||
return [__dirname];
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user