Add Babel Polyfill

Fixes some IE bugs, plus gives us a few more ES2015 features.
This commit is contained in:
Alex Liebowitz 2016-12-31 22:56:03 -05:00
parent cadb901209
commit 3fd7cd62af
2 changed files with 2 additions and 1 deletions

View file

@ -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",

View file

@ -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/',