Skip to content

Commit 514d43d

Browse files
xwchrisgregberge
authored andcommitted
fix: prevent babel read babel.config.js (#206)
1 parent 62c7815 commit 514d43d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/webpack/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ function svgrLoader(source) {
2525
jsCode,
2626
{
2727
babelrc: false,
28+
// 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
29+
configFile: false,
2830
presets: [
2931
'@babel/preset-react',
3032
['@babel/preset-env', { modules: false }],

0 commit comments

Comments
 (0)