add babel-polyfill in commons

This commit is contained in:
noraiz-anwar
2018-11-09 14:57:10 +05:00
committed by Noraiz Anwar
parent da60f9ec32
commit ce41896deb
2 changed files with 2 additions and 5 deletions

View File

@@ -1,10 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
// babel-polyfill must be imported last because of https://github.com/facebook/react/issues/8379
// which otherwise causes "Objects are not valid as a react child" errors in IE11.
import 'babel-polyfill';
class ReactRendererException extends Error {
constructor(message) {
super(`ReactRendererException: ${message}`);

View File

@@ -79,7 +79,8 @@ module.exports = Merge.smart({
ReactRenderer: './common/static/js/src/ReactRenderer.jsx',
XModuleShim: 'xmodule/js/src/xmodule.js',
VerticalStudentView: './common/lib/xmodule/xmodule/assets/vertical/public/js/vertical_student_view.js'
VerticalStudentView: './common/lib/xmodule/xmodule/assets/vertical/public/js/vertical_student_view.js',
commons : 'babel-polyfill',
},
output: {