add babel-polyfill in commons
This commit is contained in:
committed by
Noraiz Anwar
parent
da60f9ec32
commit
ce41896deb
@@ -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}`);
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user