Browse Source

deps: update to Babel 7

dev1
Saúl Ibarra Corretgé 7 years ago
parent
commit
a3a3471ce7
3 changed files with 1289 additions and 1108 deletions
  1. 1274
    1099
      package-lock.json
  2. 8
    6
      package.json
  3. 7
    3
      webpack.config.js

+ 1274
- 1099
package-lock.json
File diff suppressed because it is too large
View File


+ 8
- 6
package.json View File

31
     "yaeti": "1.0.1"
31
     "yaeti": "1.0.1"
32
   },
32
   },
33
   "devDependencies": {
33
   "devDependencies": {
34
-    "babel-core": "6.26.0",
35
-    "babel-eslint": "8.0.3",
36
-    "babel-loader": "7.1.2",
37
-    "babel-preset-env": "1.6.1",
38
-    "babel-preset-flow": "6.23.0",
39
-    "babel-preset-stage-1": "6.24.1",
34
+    "@babel/core": "7.1.2",
35
+    "@babel/plugin-proposal-class-properties": "7.1.0",
36
+    "@babel/plugin-proposal-export-namespace-from": "7.0.0",
37
+    "@babel/plugin-transform-flow-strip-types": "7.0.0",
38
+    "@babel/preset-env": "7.1.0",
39
+    "@babel/preset-flow": "7.0.0",
40
+    "babel-eslint": "10.0.1",
41
+    "babel-loader": "8.0.4",
40
     "core-js": "2.5.1",
42
     "core-js": "2.5.1",
41
     "eslint": "4.12.1",
43
     "eslint": "4.12.1",
42
     "eslint-config-jitsi": "github:jitsi/eslint-config-jitsi#v0.1",
44
     "eslint-config-jitsi": "github:jitsi/eslint-config-jitsi#v0.1",

+ 7
- 3
webpack.config.js View File

48
             options: {
48
             options: {
49
                 presets: [
49
                 presets: [
50
                     [
50
                     [
51
-                        'env',
51
+                        '@babel/preset-env',
52
 
52
 
53
                         // Tell babel to avoid compiling imports into CommonJS
53
                         // Tell babel to avoid compiling imports into CommonJS
54
                         // so that webpack may do tree shaking.
54
                         // so that webpack may do tree shaking.
55
                         { modules: false }
55
                         { modules: false }
56
                     ],
56
                     ],
57
-                    'flow',
58
-                    'stage-1'
57
+                    '@babel/preset-flow'
58
+                ],
59
+                plugins: [
60
+                    '@babel/plugin-transform-flow-strip-types',
61
+                    '@babel/plugin-proposal-class-properties',
62
+                    '@babel/plugin-proposal-export-namespace-from'
59
                 ]
63
                 ]
60
             },
64
             },
61
             test: /\.js$/
65
             test: /\.js$/

Loading…
Cancel
Save