From fac106b50b08763435461fa233798e70998f084c Mon Sep 17 00:00:00 2001 From: Jason Foreman Date: Thu, 10 Dec 2015 23:58:37 -0600 Subject: [PATCH] Use babel-core polyfill for Safari. Safari lacks es6 Object.assign. This uses the solution from http://stackoverflow.com/a/32917654 to add the babel-core polyfill which fixes support for Safari (and potentially other polyfills?). --- webpack.config.js | 1 + webpack.config.production.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 30dbc63fc..81606dc9b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,6 +7,7 @@ module.exports = { devtool: 'source-map', entry: [ 'webpack-hot-middleware/client', + 'babel-core/polyfill', './index' ], output: { diff --git a/webpack.config.production.js b/webpack.config.production.js index 91ef8a84d..09f83d4eb 100644 --- a/webpack.config.production.js +++ b/webpack.config.production.js @@ -4,7 +4,10 @@ var path = require("path"); var webpack = require("webpack"); module.exports = { - entry: "./index", + entry: [ + "babel-core/polyfill", + "./index" + ], output: { path: path.join(__dirname, "dist"), filename: "bundle.js",