Skip to content

Commit

Permalink
fix: prevent babel read babel.config.js (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
xwchris authored and gregberge committed Oct 13, 2018
1 parent 62c7815 commit 514d43d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/webpack/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
Expand Down

1 comment on commit 514d43d

@vercel
Copy link

@vercel vercel bot commented on 514d43d Oct 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully aliased the URL https://svgr-aiezamdqgr.now.sh to the following alias.

Please sign in to comment.