Bläddra i källkod

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

j8
hristoterezov 7 år sedan
förälder
incheckning
bade2ae719
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1
    1
      package.json
  2. 1
    1
      webpack.config.js

+ 1
- 1
package.json Visa fil

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

+ 1
- 1
webpack.config.js Visa fil

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

Laddar…
Avbryt
Spara