Skip to content

Commit 71914de

Browse files
committed
【update】update webpackconfig
1 parent 654a29b commit 71914de

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

build/webpack.config.openlayers.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,19 @@ module.exports = {
5656
exclude: /classic | webgl-debug/,
5757
loader: 'babel-loader',
5858
options: {
59-
presets: ['@babel/preset-env']
59+
presets: ['@babel/preset-env'],
60+
plugins: [
61+
[
62+
'@babel/plugin-transform-runtime',
63+
{
64+
absoluteRuntime: false,
65+
corejs: false,
66+
helpers: false,
67+
regenerator: true,
68+
useESModules: false
69+
}
70+
]
71+
]
6072
}
6173
});
6274
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"license": "Apache-2.0",
6060
"devDependencies": {
6161
"@babel/core": "^7.7.4",
62+
"@babel/plugin-transform-runtime": "^7.8.3",
6263
"@babel/preset-env": "^7.7.4",
6364
"@geoman-io/leaflet-geoman-free": "2.3.0",
6465
"babel-eslint": "^10.0.3",

0 commit comments

Comments
 (0)