ソースを参照

deps: re-add babel-polyfill as a dependency

babel does not modify existing builtins by default. That means
some newer methods, such as Array.prototype.includes, may not
be available unless babel-polyfill is used.
j8
Leonard Kim 8年前
コミット
986939e501
2個のファイルの変更6行の追加1行の削除
  1. 1
    0
      package.json
  2. 5
    1
      webpack.config.js

+ 1
- 0
package.json ファイルの表示

@@ -66,6 +66,7 @@
66 66
     "babel-core": "6.24.0",
67 67
     "babel-eslint": "7.2.1",
68 68
     "babel-loader": "6.4.1",
69
+    "babel-polyfill": "6.23.0",
69 70
     "babel-preset-es2015": "6.24.0",
70 71
     "babel-preset-react": "6.23.0",
71 72
     "babel-preset-stage-1": "6.22.0",

+ 5
- 1
webpack.config.js ファイルの表示

@@ -163,7 +163,11 @@ const configs = [
163 163
     // The Webpack configuration to bundle app.bundle.js (aka APP).
164 164
     Object.assign({}, config, {
165 165
         entry: {
166
-            'app.bundle': './app.js'
166
+            'app.bundle': [
167
+                // XXX Requried by at least IE11 at the time of this writing.
168
+                'babel-polyfill',
169
+                './app.js'
170
+            ]
167 171
         },
168 172
         output: Object.assign({}, config.output, {
169 173
             library: 'APP'

読み込み中…
キャンセル
保存