Переглянути джерело

chore(babel): Use babel-preset-env instead of babel-preset-es2015.

dev1
hristoterezov 8 роки тому
джерело
коміт
4ba72374aa
2 змінених файлів з 2 додано та 2 видалено
  1. 1
    1
      package.json
  2. 1
    1
      webpack.config.js

+ 1
- 1
package.json Переглянути файл

@@ -31,7 +31,7 @@
31 31
     "babel-core": "6.26.0",
32 32
     "babel-eslint": "8.0.1",
33 33
     "babel-loader": "7.1.2",
34
-    "babel-preset-es2015": "6.24.1",
34
+    "babel-preset-env": "1.6.1",
35 35
     "babel-preset-stage-1": "6.24.1",
36 36
     "core-js": "2.5.1",
37 37
     "eslint": "4.8.0",

+ 1
- 1
webpack.config.js Переглянути файл

@@ -62,7 +62,7 @@ module.exports = {
62 62
             options: {
63 63
                 presets: [
64 64
                     [
65
-                        'es2015',
65
+                        'env',
66 66
 
67 67
                         // Tell babel to avoid compiling imports into CommonJS
68 68
                         // so that webpack may do tree shaking.

Завантаження…
Відмінити
Зберегти