Browse Source

chore(babel-preset-stage-1): Adds stage 1 in order to support ... for objects

dev1
hristoterezov 7 years ago
parent
commit
5950b41936
2 changed files with 3 additions and 1 deletions
  1. 1
    0
      package.json
  2. 2
    1
      webpack.config.js

+ 1
- 0
package.json View File

@@ -34,6 +34,7 @@
34 34
     "babel-eslint": "7.2.3",
35 35
     "babel-loader": "7.0.0",
36 36
     "babel-preset-es2015": "6.24.1",
37
+    "babel-preset-stage-1": "6.24.1",
37 38
     "eslint": "3.19.0",
38 39
     "eslint-plugin-flowtype": "2.30.4",
39 40
     "eslint-plugin-import": "2.3.0",

+ 2
- 1
webpack.config.js View File

@@ -76,7 +76,8 @@ module.exports = {
76 76
                         // Tell babel to avoid compiling imports into CommonJS
77 77
                         // so that webpack may do tree shaking.
78 78
                         { modules: false }
79
-                    ]
79
+                    ],
80
+                    'stage-1'
80 81
                 ]
81 82
             },
82 83
             test: /\.js$/

Loading…
Cancel
Save