mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-27 09:13:46 +08:00
Update bable package to v7
This commit is contained in:
parent
d46069a61c
commit
b9761e1a64
2 changed files with 33 additions and 24 deletions
32
.babelrc
32
.babelrc
|
@ -1,18 +1,26 @@
|
|||
{
|
||||
"presets": [
|
||||
["env", {
|
||||
"modules": false,
|
||||
"targets": {
|
||||
"browsers": "> 1%",
|
||||
"uglify": true
|
||||
},
|
||||
"useBuiltIns": true
|
||||
}]
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"modules": false,
|
||||
"targets": {
|
||||
"browsers": "> 1%",
|
||||
"uglify": true
|
||||
},
|
||||
"useBuiltIns": true
|
||||
}
|
||||
],
|
||||
"@babel/preset-flow"
|
||||
],
|
||||
|
||||
"plugins": [
|
||||
"syntax-dynamic-import",
|
||||
"transform-object-rest-spread",
|
||||
["transform-class-properties", { "spec": true }]
|
||||
"@babel/plugin-syntax-dynamic-import",
|
||||
"@babel/plugin-proposal-object-rest-spread",
|
||||
[
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
{
|
||||
"spec": true
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
25
package.json
25
package.json
|
@ -21,9 +21,10 @@
|
|||
"lint": "eslint ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/plugin-transform-react-jsx-source": "^7.0.0",
|
||||
"@fortawesome/fontawesome-free": "^5.2.0",
|
||||
"babel-eslint": "^8.2.6",
|
||||
"babel-plugin-transform-react-jsx-source": "^6.22.0",
|
||||
"babel-eslint": "^9.0.0",
|
||||
"eslint": "^5.14.1",
|
||||
"eslint-config-airbnb": "^15.1.0",
|
||||
"eslint-config-airbnb-base": "^13.0.0",
|
||||
|
@ -39,21 +40,21 @@
|
|||
"flow-typed": "^2.5.1",
|
||||
"prettier": "^1.13.7",
|
||||
"prettier-eslint": "^8.8.2",
|
||||
"webpack-dev-server": "^3.7.2"
|
||||
"webpack-dev-server": "^3.7.2",
|
||||
"@babel/preset-flow": "^7.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
||||
"@babel/polyfill": "^7.0.0",
|
||||
"@babel/preset-env": "^7.0.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@rails/webpacker": "^4.0.7",
|
||||
"autoprefixer": "^7.2.6",
|
||||
"axios": "0.18.1",
|
||||
"babel-core": "^6.26.3",
|
||||
"babel-loader": "^7.1.5",
|
||||
"babel-plugin-syntax-dynamic-import": "^6.18.0",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"babel-preset-react": "^6.24.1",
|
||||
"babel-loader": "^8.0.0",
|
||||
"bootstrap-sass": "^3.3.7",
|
||||
"coffee-loader": "^0.8.0",
|
||||
"coffeescript": "^1.12.6",
|
||||
|
|
Loading…
Reference in a new issue