I am trying to port some ES6 code I have written that uses systemjs + Babel.
I didn't have any problem porting most of the code.
However, I have some code that needs to dynamically load an ES6 module, like this:
function load(src) {
System.import(src).then(function() {});
}
src is an external ES6 module which may also have dependencies (static imports).
How could I port this code to Webpack ? If I try to use require statement I'm getting a WARNING which seems to be normal according to the Webpack docs.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…