Skip to content

Commit

Permalink
fix: exclude transform core-js with babel-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
willworks committed Apr 7, 2021
1 parent 4545b0c commit 339ac54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webapp/internals/webpack/webpack.base.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ module.exports = options => ({
},
{
test: /\.js$/, // Transform all .js files required somewhere with Babel
use: 'happypack/loader?id=js'
exclude: [
/\bcore-js\b/,
/\bwebpack\/buildin\b/
],
use: 'happypack/loader?id=js',
},
{
// Do not transform vendor's CSS with CSS-modules
Expand Down

0 comments on commit 339ac54

Please sign in to comment.