Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 462adaa

Browse files
czychaFezVrasta
authored andcommitted
chore: use babel@^7.0.0 (#222)
1 parent 3117eee commit 462adaa

File tree

5 files changed

+2432
-1108
lines changed

5 files changed

+2432
-1108
lines changed

.babelrc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"presets": [
3-
["env", { "modules": false, "loose": true }],
4-
"stage-2",
5-
"react"
3+
["@babel/env", { "modules": false, "loose": true }],
4+
"@babel/flow",
5+
"@babel/react"
66
],
77
"plugins": [
8-
"transform-class-properties"
8+
"@babel/proposal-class-properties"
99
],
1010
"env": {
1111
"esm": {
1212
"plugins": [
13-
["transform-runtime", { "useBuiltIns": true }]
13+
"@babel/transform-runtime"
1414
],
1515
"ignore": [
1616
"**/*.test.js",
@@ -19,8 +19,8 @@
1919
},
2020
"cjs": {
2121
"plugins": [
22-
["transform-runtime", { "useBuiltIns": true }],
23-
"transform-es2015-modules-commonjs"
22+
"@babel/transform-runtime",
23+
"@babel/transform-modules-commonjs"
2424
],
2525
"ignore": [
2626
"**/*.test.js",
@@ -29,7 +29,7 @@
2929
},
3030
"test": {
3131
"plugins": [
32-
"transform-es2015-modules-commonjs"
32+
"@babel/transform-modules-commonjs"
3333
]
3434
}
3535
}

.size-snapshot.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"dist/index.umd.js": {
3-
"bundled": 50022,
4-
"minified": 17925,
5-
"gzipped": 5768
3+
"bundled": 51977,
4+
"minified": 17666,
5+
"gzipped": 5671
66
},
77
"dist/index.umd.min.js": {
8-
"bundled": 25681,
9-
"minified": 10292,
10-
"gzipped": 3478
8+
"bundled": 25989,
9+
"minified": 9935,
10+
"gzipped": 3422
1111
},
1212
"dist/index.esm.js": {
13-
"bundled": 10033,
14-
"minified": 5762,
15-
"gzipped": 1825,
13+
"bundled": 11040,
14+
"minified": 6620,
15+
"gzipped": 1840,
1616
"treeshaked": {
1717
"rollup": {
18-
"code": 4560,
18+
"code": 3717,
1919
"import_statements": 137
2020
},
2121
"webpack": {
22-
"code": 5294
22+
"code": 4823
2323
}
2424
}
2525
}

package.json

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,26 +58,28 @@
5858
"react": "0.14.x || ^15.0.0 || ^16.0.0"
5959
},
6060
"dependencies": {
61-
"babel-runtime": "6.x.x",
61+
"@babel/runtime": "^7.1.2",
6262
"create-react-context": "<=0.2.2",
6363
"popper.js": "^1.14.4",
6464
"prop-types": "^15.6.1",
6565
"typed-styles": "^0.0.7",
6666
"warning": "^4.0.2"
6767
},
6868
"devDependencies": {
69+
"@babel/cli": "^7.1.2",
70+
"@babel/core": "^7.1.2",
71+
"@babel/plugin-external-helpers": "^7.0.0",
72+
"@babel/plugin-proposal-class-properties": "^7.1.0",
73+
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
74+
"@babel/plugin-transform-runtime": "^7.1.0",
75+
"@babel/preset-env": "^7.1.0",
76+
"@babel/preset-flow": "^7.0.0",
77+
"@babel/preset-react": "^7.0.0",
78+
"@babel/preset-stage-2": "^7.0.0",
6979
"@types/react": "^16.1.0",
70-
"babel-cli": "^6.26.0",
71-
"babel-core": "^6.26.0",
72-
"babel-eslint": "^8.2.2",
73-
"babel-jest": "^22.4.3",
74-
"babel-plugin-external-helpers": "^6.22.0",
75-
"babel-plugin-transform-class-properties": "^6.24.1",
76-
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
77-
"babel-plugin-transform-runtime": "^6.23.0",
78-
"babel-preset-env": "^1.6.1",
79-
"babel-preset-react": "^6.24.1",
80-
"babel-preset-stage-2": "^6.24.1",
80+
"babel-core": "^7.0.0-bridge.0",
81+
"babel-eslint": "^10.0.1",
82+
"babel-jest": "^23.6.0",
8183
"cross-env": "^5.1.4",
8284
"emotion": "^9.1.1",
8385
"enzyme": "^3.3.0",
@@ -94,7 +96,7 @@
9496
"gh-pages": "^1.1.0",
9597
"git-branch-is": "^0.1.0",
9698
"jest": "^22.4.3",
97-
"parcel-bundler": "^1.6.2",
99+
"parcel-bundler": "^1.10.1",
98100
"prettier": "^1.11.1",
99101
"pretty-quick": "^1.4.1",
100102
"react": "16.2.0",
@@ -103,8 +105,8 @@
103105
"react-spring": "^4.0.1",
104106
"recompose": "^0.26.0",
105107
"rimraf": "^2.6.2",
106-
"rollup": "^0.59.3",
107-
"rollup-plugin-babel": "^3.0.4",
108+
"rollup": "^0.60.0",
109+
"rollup-plugin-babel": "^4.0.3",
108110
"rollup-plugin-commonjs": "^9.1.3",
109111
"rollup-plugin-node-resolve": "^3.3.0",
110112
"rollup-plugin-replace": "^2.0.0",

rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const umdGlobals = {
1414

1515
const getBabelOptions = () => ({
1616
exclude: '**/node_modules/**',
17-
plugins: ['external-helpers'],
1817
});
1918

2019
export default [

0 commit comments

Comments
 (0)