Browse Source

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

dev1
hristoterezov 8 years ago
parent
commit
4ba72374aa
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      package.json
  2. 1
    1
      webpack.config.js

+ 1
- 1
package.json View File

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

+ 1
- 1
webpack.config.js View File

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

Loading…
Cancel
Save