Skip to content

Commit

Permalink
Added '@babel/preset-env' to .js babel-loader (otherwise ignored when…
Browse files Browse the repository at this point in the history
… building node_modules).
  • Loading branch information
fschmenger committed May 4, 2021
1 parent a47e5ae commit ba2af91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/webpack.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ module.exports = {
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('app'), resolve('src'), resolve('test'), resolve('node_modules/ol')],
options: {
presets: ['@babel/preset-env']
}
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
Expand Down

0 comments on commit ba2af91

Please sign in to comment.