From ba2af918fe595f5659d63acad5eb76f202e5237a Mon Sep 17 00:00:00 2001 From: Felix Schmenger Date: Tue, 4 May 2021 10:05:10 +0200 Subject: [PATCH] Added '@babel/preset-env' to .js babel-loader (otherwise ignored when building node_modules). --- build/webpack.base.conf.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 3b8836d2..7a2876f1 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -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)(\?.*)?$/,