From 9ec5f4d09d0d6e2af8f09b563651353c19ff5c7d Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Fri, 12 Jan 2018 15:30:34 -0500 Subject: [PATCH] Add babel-polyfill to fix IE11 bug ReactRenderer used Object.assign which is an ES 2015 feature that is not supported by IE11. babel-polyfill will now polyfills that function for browsers that do not support it before ReactRenderer tries to use it. --- common/static/js/src/ReactRenderer.jsx | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/common/static/js/src/ReactRenderer.jsx b/common/static/js/src/ReactRenderer.jsx index db5a5f1764..bf295c0368 100644 --- a/common/static/js/src/ReactRenderer.jsx +++ b/common/static/js/src/ReactRenderer.jsx @@ -1,3 +1,4 @@ +import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; diff --git a/package.json b/package.json index de0ba1b015..404a34db50 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "babel-loader": "^6.4.0", "babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-object-rest-spread": "^6.26.0", + "babel-polyfill": "^6.26.0", "babel-preset-env": "^1.2.1", "babel-preset-react": "^6.24.1", "backbone": "~1.3.2",