Преглед на файлове

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

j8
hristoterezov преди 8 години
родител
ревизия
bade2ae719
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1
    1
      package.json
  2. 1
    1
      webpack.config.js

+ 1
- 1
package.json Целия файл

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 Целия файл

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.

Loading…
Отказ
Запис