Browse Source

Adding babel back.

master
Dan 1 year ago
parent
commit
4d2d321430
3 changed files with 8 additions and 3 deletions
  1. 1
    1
      .babelrc
  2. 3
    0
      package.json
  3. 4
    2
      webpack.config.js

+ 1
- 1
.babelrc View File

@@ -1,5 +1,5 @@
1 1
 {
2 2
   "presets": [
3
-    "stage-0"
3
+    "env"
4 4
   ]
5 5
 }

+ 3
- 0
package.json View File

@@ -9,6 +9,9 @@
9 9
   "license": "MIT",
10 10
   "keywords": [],
11 11
   "devDependencies": {
12
+    "babel-core": "^6.26.0",
13
+    "babel-loader": "^7.1.2",
14
+    "babel-preset-env": "^1.6.1",
12 15
     "webpack": "^3.10.0",
13 16
     "webpack-dev-server": "^2.9.7"
14 17
   },

+ 4
- 2
webpack.config.js View File

@@ -24,11 +24,13 @@ module.exports = {
24 24
       {
25 25
         test: /\.js$/,
26 26
         include: path.join(__dirname, 'src'),
27
-        exclude: [/fetcher/]
27
+        exclude: [/fetcher/],
28
+        loader: "babel-loader"
28 29
       },
29 30
       {
30 31
         test: /\.js$/,
31
-        include: [/fetcher/]
32
+        include: [/fetcher/],
33
+        loader: "babel-loader"
32 34
       }
33 35
     ]
34 36
   },

Loading…
Cancel
Save