Skip to content

Commit

Permalink
fix(installer): fix babel runtime error (tkestack#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-hnny committed Oct 23, 2020
1 parent 42800e4 commit 9b8eaff
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 71 deletions.
42 changes: 10 additions & 32 deletions web/installer/.babelrc
Original file line number Diff line number Diff line change
@@ -1,36 +1,14 @@
{
"presets": [
"@babel/preset-react"
"@babel/preset-react",
[
"@babel/preset-env",
{
"modules": "commonjs"
}
]
],
"plugins": [
"@babel/plugin-transform-member-expression-literals",
"@babel/plugin-transform-property-literals"
],
"env": {
"development": {
"presets": [
[
"@babel/preset-env",
{
"loose": true,
"modules": "commonjs",
"exclude": [
"babel-plugin-transform-async-to-generator",
"babel-plugin-transform-regenerator"
]
}
]
],
"plugins": [
[
"react-hot-loader/babel"
]
]
},
"production": {
"presets": [
"@babel/preset-env"
]
}
}
}
"@babel/plugin-transform-runtime"
]
}
64 changes: 25 additions & 39 deletions web/installer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions web/installer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@types/jquery": "^3.3.31",
"@types/node": "^12.7.4",
"@vx/axis": "^0.0.183",
Expand Down Expand Up @@ -70,8 +71,10 @@
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-transform-async-to-generator": "^7.12.1",
"@babel/plugin-transform-member-expression-literals": "^7.0.0",
"@babel/plugin-transform-property-literals": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.7.0",
Expand Down

0 comments on commit 9b8eaff

Please sign in to comment.