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": [
|
"presets": [
|
||||||
["env", {
|
[
|
||||||
"modules": false,
|
"@babel/preset-env",
|
||||||
"targets": {
|
{
|
||||||
"browsers": "> 1%",
|
"modules": false,
|
||||||
"uglify": true
|
"targets": {
|
||||||
},
|
"browsers": "> 1%",
|
||||||
"useBuiltIns": true
|
"uglify": true
|
||||||
}]
|
},
|
||||||
|
"useBuiltIns": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@babel/preset-flow"
|
||||||
],
|
],
|
||||||
|
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"syntax-dynamic-import",
|
"@babel/plugin-syntax-dynamic-import",
|
||||||
"transform-object-rest-spread",
|
"@babel/plugin-proposal-object-rest-spread",
|
||||||
["transform-class-properties", { "spec": true }]
|
[
|
||||||
|
"@babel/plugin-proposal-class-properties",
|
||||||
|
{
|
||||||
|
"spec": true
|
||||||
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
25
package.json
25
package.json
|
@ -21,9 +21,10 @@
|
||||||
"lint": "eslint ."
|
"lint": "eslint ."
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@babel/core": "^7.0.0",
|
||||||
|
"@babel/plugin-transform-react-jsx-source": "^7.0.0",
|
||||||
"@fortawesome/fontawesome-free": "^5.2.0",
|
"@fortawesome/fontawesome-free": "^5.2.0",
|
||||||
"babel-eslint": "^8.2.6",
|
"babel-eslint": "^9.0.0",
|
||||||
"babel-plugin-transform-react-jsx-source": "^6.22.0",
|
|
||||||
"eslint": "^5.14.1",
|
"eslint": "^5.14.1",
|
||||||
"eslint-config-airbnb": "^15.1.0",
|
"eslint-config-airbnb": "^15.1.0",
|
||||||
"eslint-config-airbnb-base": "^13.0.0",
|
"eslint-config-airbnb-base": "^13.0.0",
|
||||||
|
@ -39,21 +40,21 @@
|
||||||
"flow-typed": "^2.5.1",
|
"flow-typed": "^2.5.1",
|
||||||
"prettier": "^1.13.7",
|
"prettier": "^1.13.7",
|
||||||
"prettier-eslint": "^8.8.2",
|
"prettier-eslint": "^8.8.2",
|
||||||
"webpack-dev-server": "^3.7.2"
|
"webpack-dev-server": "^3.7.2",
|
||||||
|
"@babel/preset-flow": "^7.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"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",
|
"@rails/webpacker": "^4.0.7",
|
||||||
"autoprefixer": "^7.2.6",
|
"autoprefixer": "^7.2.6",
|
||||||
"axios": "0.18.1",
|
"axios": "0.18.1",
|
||||||
"babel-core": "^6.26.3",
|
"babel-loader": "^8.0.0",
|
||||||
"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",
|
|
||||||
"bootstrap-sass": "^3.3.7",
|
"bootstrap-sass": "^3.3.7",
|
||||||
"coffee-loader": "^0.8.0",
|
"coffee-loader": "^0.8.0",
|
||||||
"coffeescript": "^1.12.6",
|
"coffeescript": "^1.12.6",
|
||||||
|
|
Loading…
Reference in a new issue