Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

Commit e8c0591

Browse files
Merge pull request #103 from sag1v/master
upgrade to babel 7
2 parents 4256f64 + df4d01f commit e8c0591

File tree

4 files changed

+31
-16
lines changed

4 files changed

+31
-16
lines changed

template/default/.babelrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"presets": [
3-
["env", {
3+
["@babel/preset-env", {
44
"modules": false
55
}],
6-
"stage-0",
7-
"react"
8-
]
9-
}
6+
"@babel/preset-react"
7+
],
8+
"plugins": ["@babel/plugin-proposal-class-properties"]
9+
}

template/default/package.json

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,28 @@
2727
"react-dom": "^15.0.0 || ^16.0.0"
2828
},
2929
"devDependencies": {
30+
"@babel/core": "^7.0.0",
31+
"@babel/plugin-external-helpers": "^7.0.0",
32+
"@babel/plugin-proposal-class-properties": "^7.0.0",
33+
"@babel/plugin-proposal-decorators": "^7.0.0",
34+
"@babel/plugin-proposal-do-expressions": "^7.0.0",
35+
"@babel/plugin-proposal-export-default-from": "^7.0.0",
36+
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
37+
"@babel/plugin-proposal-function-bind": "^7.0.0",
38+
"@babel/plugin-proposal-function-sent": "^7.0.0",
39+
"@babel/plugin-proposal-json-strings": "^7.0.0",
40+
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
41+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
42+
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
43+
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
44+
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
45+
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
46+
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
47+
"@babel/plugin-syntax-import-meta": "^7.0.0",
48+
"@babel/preset-env": "^7.0.0",
49+
"@babel/preset-react": "^7.0.0",
3050
"@svgr/rollup": "^2.4.1",
31-
"babel-core": "^6.26.3",
32-
"babel-eslint": "^8.2.5",
33-
"babel-plugin-external-helpers": "^6.22.0",
34-
"babel-preset-env": "^1.7.0",
35-
"babel-preset-react": "^6.24.1",
36-
"babel-preset-stage-0": "^6.24.1",
51+
"babel-eslint": "^10.0.1",
3752
"cross-env": "^5.1.4",
3853
"eslint": "^5.0.1",
3954
"eslint-config-standard": "^11.0.0",
@@ -48,7 +63,7 @@
4863
"react-dom": "^16.4.1",
4964
"react-scripts": "^1.1.4",
5065
"rollup": "^0.64.1",
51-
"rollup-plugin-babel": "^3.0.7",
66+
"rollup-plugin-babel": "^4.0.1",
5267
"rollup-plugin-commonjs": "^9.1.3",
5368
"rollup-plugin-node-resolve": "^3.3.0",
5469
"rollup-plugin-peer-deps-external": "^2.2.0",

template/default/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
svgr(),
3232
babel({
3333
exclude: 'node_modules/**',
34-
plugins: [ 'external-helpers' ]
34+
plugins: [ '@babel/external-helpers' ]
3535
}),
3636
resolve(),
3737
commonjs()

template/typescript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
"react-dom": "^15.0.0 || ^16.0.0"
2929
},
3030
"devDependencies": {
31+
"@babel/core": "^7.0.0",
32+
"@babel/runtime": "^7.0.0",
3133
"@svgr/rollup": "^2.4.1",
3234
"@types/jest": "^23.1.5",
3335
"@types/react": "^16.3.13",
3436
"@types/react-dom": "^16.0.5",
35-
"babel-core": "^6.26.3",
36-
"babel-runtime": "^6.26.0",
3737
"cross-env": "^5.1.4",
3838
"gh-pages": "^1.2.0",
3939
"react": "^16.4.1",
4040
"react-dom": "^16.4.1",
4141
"react-scripts-ts": "^2.16.0",
4242
"rollup": "^0.62.0",
43-
"rollup-plugin-babel": "^3.0.7",
43+
"rollup-plugin-babel": "^4.0.1",
4444
"rollup-plugin-commonjs": "^9.1.3",
4545
"rollup-plugin-node-resolve": "^3.3.0",
4646
"rollup-plugin-peer-deps-external": "^2.2.0",

0 commit comments

Comments
 (0)