From 3fd7cd62af68c7a6268ed3fda2a3b83fae3d6908 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Sat, 31 Dec 2016 22:56:03 -0500 Subject: [PATCH] Add Babel Polyfill Fixes some IE bugs, plus gives us a few more ES2015 features. --- package.json | 1 + webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 14b1eca0d..40ef3d434 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "babel-plugin-react-require": "^3.0.0", "babel-preset-es2015": "^6.18.0", "babel-preset-react": "^6.16.0", + "babel-polyfill": "^6.20.0", "eslint": "^3.10.2", "eslint-config-airbnb": "^13.0.0", "eslint-loader": "^1.6.1", diff --git a/webpack.config.js b/webpack.config.js index 2e479d119..34b4bdffc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,7 +6,7 @@ const PATHS = { }; module.exports = { - entry: "./js/main.js", + entry: ['babel-polyfill', './js/main.js'], output: { path: path.join(PATHS.dist, 'js'), publicPath: '/js/',