Only include hmr transforms when in dev mode

Reviewed By: arcanis

Differential Revision: D5732348

fbshipit-source-id: cc70d3ee6531f1f8345d6a04827ca802382525d8
This commit is contained in:
Rafael Oleza 2017-08-30 03:36:51 -07:00 committed by Facebook Github Bot
parent 84ae805e78
commit 21cc11c5ae
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ function buildBabelConfig(filename, options) {
config.plugins = extraPlugins.concat(config.plugins); config.plugins = extraPlugins.concat(config.plugins);
if (options.hot) { if (options.dev && options.hot) {
const hmrConfig = makeHMRConfig(options, filename); const hmrConfig = makeHMRConfig(options, filename);
config = Object.assign({}, config, hmrConfig); config = Object.assign({}, config, hmrConfig);
} }