Browse Source

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

dev1
hristoterezov 8 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
     "babel-eslint": "7.2.3",
34
     "babel-eslint": "7.2.3",
35
     "babel-loader": "7.0.0",
35
     "babel-loader": "7.0.0",
36
     "babel-preset-es2015": "6.24.1",
36
     "babel-preset-es2015": "6.24.1",
37
+    "babel-preset-stage-1": "6.24.1",
37
     "eslint": "3.19.0",
38
     "eslint": "3.19.0",
38
     "eslint-plugin-flowtype": "2.30.4",
39
     "eslint-plugin-flowtype": "2.30.4",
39
     "eslint-plugin-import": "2.3.0",
40
     "eslint-plugin-import": "2.3.0",

+ 2
- 1
webpack.config.js View File

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

Loading…
Cancel
Save