Skip to content

Commit

Permalink
fix: update babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
blackfalcon committed May 21, 2020
1 parent 0da7131 commit 3e5b515
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
14 changes: 14 additions & 0 deletions template/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
presets: [
[
'@babel/preset-env', {
useBuiltIns: 'usage',
corejs: 3,
},
],
],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-syntax-dynamic-import',
],
};
22 changes: 1 addition & 21 deletions template/package.temp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"scripts": {
"build": "npm run ciBuild",
"bundler": "webpack --mode=production",
"bundle:test": "webpack-dev-server",
"bundle:test": "webpack-dev-server --host 0.0.0.0",
"postinstall": "node packageScripts/postinstall.js",
"postinstall:lit": "node scripts/postinstall.js",
"cssLint": "stylelint './src/*.css'",
Expand Down Expand Up @@ -150,26 +150,6 @@
"publishConfig": {
"access": "public"
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "entry",
"corejs": "3.0.0"
}
]
],
"plugins": [
[
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-transform-runtime",
{
"regenerator": true
}
]
]
},
"contributors": [
{
"name": "[author]",
Expand Down

0 comments on commit 3e5b515

Please sign in to comment.