Skip to content

Commit

Permalink
fix(webpack-batteries-included-preprocessor): Disable loading babel c…
Browse files Browse the repository at this point in the history
…onfig files (#16980)
  • Loading branch information
chrisbreiding authored Jun 21, 2021
1 parent d73cac2 commit e1d2256
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions npm/webpack-batteries-included-preprocessor/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"__description__": "This is here to prove that babel.config.json does not get used by babel-loader. It's not used for the compilation of this project.",
"plugins": [
"doesnt-exist"
]
}
2 changes: 2 additions & 0 deletions npm/webpack-batteries-included-preprocessor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ const getDefaultWebpackOptions = () => {
[require.resolve('@babel/preset-env'), { modules: 'commonjs', targets: { 'chrome': '64' } }],
require.resolve('@babel/preset-react'),
],
configFile: false,
babelrc: false,
},
}],
}, {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"__description__": "This is here to prove that .babelrc does not get used by babel-loader. It's not used for the compilation of this project.",
"plugins": [
"doesnt-exist"
]
}

0 comments on commit e1d2256

Please sign in to comment.