Enable delta bundler on metro-bundler behind a cli argument

Reviewed By: mjesun

Differential Revision: D5761110

fbshipit-source-id: 83127f63679caffbc4f335f52f6f5eda398e8c05
This commit is contained in:
Rafael Oleza 2017-09-04 13:42:41 -07:00 committed by Facebook Github Bot
parent 83bb8022e1
commit eb6ba0b041
2 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,7 @@ function buildBundle(
sourceExts: defaultSourceExts.concat(sourceExts),
transformCache: TransformCaching.useTempDir(),
transformModulePath: transformModulePath,
useDeltaBundler: false,
watch: false,
workerPath: config.getWorkerPath && config.getWorkerPath(),
};

View File

@ -171,6 +171,7 @@ function getPackagerServer(args, config) {
sourceExts: defaultSourceExts.concat(args.sourceExts),
transformModulePath: transformModulePath,
transformCache: TransformCaching.useTempDir(),
useDeltaBundler: false,
verbose: args.verbose,
watch: !args.nonPersistent,
workerPath: config.getWorkerPath(),