react-native: prefer custom source extensions over default extensions
Reviewed By: mjesun Differential Revision: D7066617 fbshipit-source-id: cdde7451cb817d62d6705071752fce0686cf04dc
This commit is contained in:
parent
8d74af4d60
commit
33a893e18b
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue