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", "@babel/preset-env",
{ {
"corejs": "3.15", "corejs": "3.15",
"useBuiltIns": "usage" "useBuiltIns": "usage",
"targets": {
"browsers": [
"last 5 versions",
"ie >= 8"
]
}
} }
] ]
] ]

View File

@ -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",

View File

@ -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"
]
}
} }
] ]
] ]

View File

@ -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",

View File

@ -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"]
} }

View File

@ -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"
}, },