react-native: prefer custom source extensions over default extensions

Reviewed By: mjesun

Differential Revision: D7066617

fbshipit-source-id: cdde7451cb817d62d6705071752fce0686cf04dc
This commit is contained in:
Jean Lauliac 2018-02-23 08:46:48 -08:00 committed by Facebook Github Bot
parent 8d74af4d60
commit 33a893e18b
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ async function buildBundle(
providesModuleNodeModules: providesModuleNodeModules, providesModuleNodeModules: providesModuleNodeModules,
resetCache: args.resetCache, resetCache: args.resetCache,
reporter: new TerminalReporter(terminal), reporter: new TerminalReporter(terminal),
sourceExts: defaultSourceExts.concat(sourceExts), sourceExts: sourceExts.concat(defaultSourceExts),
transformCache: TransformCaching.useTempDir(), transformCache: TransformCaching.useTempDir(),
transformModulePath: transformModulePath, transformModulePath: transformModulePath,
watch: false, watch: false,

View File

@ -187,7 +187,7 @@ function getPackagerServer(args, config, reporter) {
providesModuleNodeModules: providesModuleNodeModules, providesModuleNodeModules: providesModuleNodeModules,
reporter, reporter,
resetCache: args.resetCache, resetCache: args.resetCache,
sourceExts: defaultSourceExts.concat(args.sourceExts), sourceExts: args.sourceExts.concat(defaultSourceExts),
transformModulePath: transformModulePath, transformModulePath: transformModulePath,
transformCache: TransformCaching.useTempDir(), transformCache: TransformCaching.useTempDir(),
verbose: args.verbose, verbose: args.verbose,