mirror of https://github.com/status-im/metro.git
Only include hmr transforms when in dev mode
Reviewed By: arcanis Differential Revision: D5732348 fbshipit-source-id: cc70d3ee6531f1f8345d6a04827ca802382525d8
This commit is contained in:
parent
84ae805e78
commit
21cc11c5ae
|
@ -107,7 +107,7 @@ function buildBabelConfig(filename, options) {
|
|||
|
||||
config.plugins = extraPlugins.concat(config.plugins);
|
||||
|
||||
if (options.hot) {
|
||||
if (options.dev && options.hot) {
|
||||
const hmrConfig = makeHMRConfig(options, filename);
|
||||
config = Object.assign({}, config, hmrConfig);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue