Selaa lähdekoodia

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

j8
hristoterezov 7 vuotta sitten
vanhempi
commit
bade2ae719
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1
    1
      package.json
  2. 1
    1
      webpack.config.js

+ 1
- 1
package.json Näytä tiedosto

@@ -80,7 +80,7 @@
80 80
     "babel-eslint": "8.0.1",
81 81
     "babel-loader": "7.1.2",
82 82
     "babel-polyfill": "6.26.0",
83
-    "babel-preset-es2015": "6.24.1",
83
+    "babel-preset-env": "1.6.1",
84 84
     "babel-preset-react": "6.24.1",
85 85
     "babel-preset-stage-1": "6.24.1",
86 86
     "clean-css": "3.4.25",

+ 1
- 1
webpack.config.js Näytä tiedosto

@@ -73,7 +73,7 @@ const config = {
73 73
                 // of the prefix babel-preset- in the preset names.
74 74
                 presets: [
75 75
                     [
76
-                        require.resolve('babel-preset-es2015'),
76
+                        require.resolve('babel-preset-env'),
77 77
 
78 78
                         // Tell babel to avoid compiling imports into CommonJS
79 79
                         // so that webpack may do tree shaking.

Loading…
Peruuta
Tallenna