From 514d43d236456d145447069aa4d4b278672b7ea0 Mon Sep 17 00:00:00 2001 From: xwchris <xwchris@users.noreply.github.com> Date: Sun, 14 Oct 2018 05:35:04 +0800 Subject: [PATCH] fix: prevent babel read babel.config.js (#206) --- packages/webpack/src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/webpack/src/index.js b/packages/webpack/src/index.js index 6743e0cd..ef156b8e 100644 --- a/packages/webpack/src/index.js +++ b/packages/webpack/src/index.js @@ -25,6 +25,8 @@ function svgrLoader(source) { jsCode, { babelrc: false, + // Unless having this, babel will merge the config with global 'babel.config.js' which may causes some problems such as using react-hot-loader/babel in babel.config.js + configFile: false, presets: [ '@babel/preset-react', ['@babel/preset-env', { modules: false }],