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.
This commit is contained in:
Leonard Kim 2017-04-04 12:23:19 -07:00 committed by Lyubo Marinov
parent e2e04e3f16
commit 986939e501
2 changed files with 6 additions and 1 deletions

View File

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

View File

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