From fbeec821e3e25013a22feb514d209b6117534a12 Mon Sep 17 00:00:00 2001 From: Eden Gottlieb Date: Thu, 23 Nov 2017 16:24:28 +0200 Subject: [PATCH 1/3] Place additional source extensions in front of default ones --- local-cli/server/runServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 05e743f434e915..314f6004bfbec8 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -200,7 +200,7 @@ function getPackagerServer(args, config, reporter) { providesModuleNodeModules: providesModuleNodeModules, reporter, resetCache: args.resetCache, - sourceExts: defaultSourceExts.concat(args.sourceExts), + sourceExts: [...args.sourceExts, ...defaultSourceExts], transformModulePath: transformModulePath, transformCache: TransformCaching.useTempDir(), verbose: args.verbose, From e64e88ee9e79acec1546109b1277e1fe29cd3f88 Mon Sep 17 00:00:00 2001 From: Eden Gottlieb Date: Thu, 23 Nov 2017 20:27:29 +0200 Subject: [PATCH 2/3] Use existing way of concating arrays --- local-cli/server/runServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 314f6004bfbec8..fd12fe63c98127 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -200,7 +200,7 @@ function getPackagerServer(args, config, reporter) { providesModuleNodeModules: providesModuleNodeModules, reporter, resetCache: args.resetCache, - sourceExts: [...args.sourceExts, ...defaultSourceExts], + sourceExts: args.sourceExts.concat(defaultSourceExts), transformModulePath: transformModulePath, transformCache: TransformCaching.useTempDir(), verbose: args.verbose, From 636034b4cdffab4a6af2aac13ca4a1cca71394cd Mon Sep 17 00:00:00 2001 From: Eden Gottlieb Date: Mon, 8 Jan 2018 17:38:12 +0200 Subject: [PATCH 3/3] Support flavoring in bundle command as well --- local-cli/bundle/buildBundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 1e9406837896a6..1c4382efdb13d3 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -117,7 +117,7 @@ async function buildBundle( providesModuleNodeModules: providesModuleNodeModules, resetCache: args.resetCache, reporter: new TerminalReporter(terminal), - sourceExts: defaultSourceExts.concat(sourceExts), + sourceExts: sourceExts.concat(defaultSourceExts), transformCache: TransformCaching.useTempDir(), transformModulePath: transformModulePath, watch: false,