Configure babel output

This commit is contained in:
Paulo Gustavo Veiga 2021-10-03 08:41:57 -07:00
parent 45e79205f1
commit f1c91e1cda
6 changed files with 29 additions and 10 deletions

View File

@ -4,7 +4,13 @@
"@babel/preset-env",
{
"corejs": "3.15",
"useBuiltIns": "usage"
"useBuiltIns": "usage",
"targets": {
"browsers": [
"last 5 versions",
"ie >= 8"
]
}
}
]
]

View File

@ -20,7 +20,7 @@
},
"scripts": {
"build": "webpack --config webpack.prod.js",
"start": "webpack serve --config webpack.dev.js"
"dev": "webpack --mode development"
},
"devDependencies": {
"@babel/core": "^7.14.6",

View File

@ -3,8 +3,14 @@
[
"@babel/preset-env",
{
"corejs": "3.9",
"useBuiltIns": "usage"
"corejs": "3.15",
"useBuiltIns": "usage",
"targets": {
"browsers": [
"last 5 versions",
"ie >= 8"
]
}
}
]
]

View File

@ -21,8 +21,8 @@
},
"scripts": {
"build": "webpack --config webpack.prod.js",
"playground": "webpack serve --config webpack.playground.js",
"start": "webpack serve --config webpack.dev.js"
"dev": "webpack serve --config webpack.dev.js",
"playground": "webpack serve --config webpack.playground.js"
},
"dependencies": {
"@wismapping/core-js": "^0.0.1",

View File

@ -3,10 +3,17 @@
[
"@babel/preset-env",
{
"corejs": "3.9",
"useBuiltIns": "usage"
"corejs": "3.15",
"useBuiltIns": "usage",
"targets": {
"browsers": [
"last 5 versions",
"ie >= 8"
]
}
}
]
],
"plugins": ["@babel/plugin-transform-modules-commonjs"]
}

View File

@ -20,7 +20,7 @@
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
},
"scripts": {
"start": "nodemon --watch lib",
"dev": "webpack --config webpack.dev.js",
"build": "webpack --config webpack.prod.js",
"playground": "webpack serve --config webpack.playground.js"
},