mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Configure babel output
This commit is contained in:
parent
45e79205f1
commit
f1c91e1cda
@ -4,7 +4,13 @@
|
|||||||
"@babel/preset-env",
|
"@babel/preset-env",
|
||||||
{
|
{
|
||||||
"corejs": "3.15",
|
"corejs": "3.15",
|
||||||
"useBuiltIns": "usage"
|
"useBuiltIns": "usage",
|
||||||
|
"targets": {
|
||||||
|
"browsers": [
|
||||||
|
"last 5 versions",
|
||||||
|
"ie >= 8"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --config webpack.prod.js",
|
"build": "webpack --config webpack.prod.js",
|
||||||
"start": "webpack serve --config webpack.dev.js"
|
"dev": "webpack --mode development"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.14.6",
|
"@babel/core": "^7.14.6",
|
||||||
|
@ -3,8 +3,14 @@
|
|||||||
[
|
[
|
||||||
"@babel/preset-env",
|
"@babel/preset-env",
|
||||||
{
|
{
|
||||||
"corejs": "3.9",
|
"corejs": "3.15",
|
||||||
"useBuiltIns": "usage"
|
"useBuiltIns": "usage",
|
||||||
|
"targets": {
|
||||||
|
"browsers": [
|
||||||
|
"last 5 versions",
|
||||||
|
"ie >= 8"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --config webpack.prod.js",
|
"build": "webpack --config webpack.prod.js",
|
||||||
"playground": "webpack serve --config webpack.playground.js",
|
"dev": "webpack serve --config webpack.dev.js",
|
||||||
"start": "webpack serve --config webpack.dev.js"
|
"playground": "webpack serve --config webpack.playground.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wismapping/core-js": "^0.0.1",
|
"@wismapping/core-js": "^0.0.1",
|
||||||
|
@ -3,10 +3,17 @@
|
|||||||
[
|
[
|
||||||
"@babel/preset-env",
|
"@babel/preset-env",
|
||||||
{
|
{
|
||||||
"corejs": "3.9",
|
"corejs": "3.15",
|
||||||
"useBuiltIns": "usage"
|
"useBuiltIns": "usage",
|
||||||
|
"targets": {
|
||||||
|
"browsers": [
|
||||||
|
"last 5 versions",
|
||||||
|
"ie >= 8"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"plugins": ["@babel/plugin-transform-modules-commonjs"]
|
"plugins": ["@babel/plugin-transform-modules-commonjs"]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
|
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "nodemon --watch lib",
|
"dev": "webpack --config webpack.dev.js",
|
||||||
"build": "webpack --config webpack.prod.js",
|
"build": "webpack --config webpack.prod.js",
|
||||||
"playground": "webpack serve --config webpack.playground.js"
|
"playground": "webpack serve --config webpack.playground.js"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user