From 986939e5014ddba18ea95b1c2a7820a508d4836f Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Tue, 4 Apr 2017 12:23:19 -0700 Subject: [PATCH] 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. --- package.json | 1 + webpack.config.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d7c2b76cb..13db60b45 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/webpack.config.js b/webpack.config.js index 1f2a56aac..0546db036 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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'