1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 10:48:22 +00:00

upgrade to babel 7

This commit is contained in:
slowbackspace 2019-02-01 18:09:16 +01:00
parent a10c9b08da
commit 86e21f7ffb
3 changed files with 1382 additions and 613 deletions

View File

@ -1,31 +1,46 @@
{
"presets": [
["env", {
"useBuiltIns": true,
"loose": true
}],
"react"
[
"@babel/preset-env",
{
"useBuiltIns": "entry",
"loose": true
}
],
"@babel/preset-react",
"@babel/preset-flow"
],
"plugins": [
"react-hot-loader/babel",
"transform-class-properties",
"transform-object-rest-spread",
"transform-flow-strip-types",
["transform-runtime", {
"polyfill": false,
"regenerator": true
}],
["module-resolver", {
"root": ["./src"],
"alias": {
"public": ["./public"]
"@babel/plugin-transform-flow-strip-types",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
[
"@babel/plugin-transform-runtime",
{
"regenerator": true
}
}],
],
[
"module-resolver",
{
"root": [
"./src"
],
"alias": {
"public": [
"./public"
]
}
}
],
"babel-plugin-styled-components"
],
"env": {
"test": {
"presets": ["jest"]
"presets": [
"jest"
]
}
}
}
}

View File

@ -25,8 +25,7 @@
"server:stable": "node ./server/index.js --buildType=stable"
},
"dependencies": {
"babel": "^6.23.0",
"babel-core": "^6.26.3",
"@babel/core": "^7.0.0",
"bignumber.js": "2.4.0",
"color-hash": "^1.0.3",
"commander": "^2.19.0",
@ -81,21 +80,26 @@
"yarn-run-all": "^3.1.1"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.2.6",
"babel-loader": "^7.1.5",
"babel-plugin-module-resolver": "^3.1.1",
"babel-plugin-styled-components": "^1.5.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
"babel-preset-jest": "^23.2.0",
"babel-preset-react": "^6.24.1",
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^9.0.0",
"babel-jest": "^23.4.2",
"babel-loader": "^8.0.0",
"babel-plugin-module-resolver": "^3.1.3",
"babel-plugin-styled-components": "^1.10.0",
"babel-preset-jest": "^24.0.0",
"eslint": "^4",
"eslint-config-airbnb": "^17.0.0",
"eslint-import-resolver-babel-module": "^4.0.0",
"eslint-import-resolver-babel-module": "^5.0.1",
"eslint-loader": "^2.1.0",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.14.0",

1908
yarn.lock

File diff suppressed because it is too large Load Diff