I am trying to port some ES6 code that I wrote that uses systemjs + Babel.
I had no problem porting most of the code.
However, I have some code that should dynamically load the ES6 module, for example:
function load(src) {
System.import(src).then(function() {});
}
src is an external ES6 module that can also have dependencies (static import).
How can I port this code to webpack? If I try to use the require statement, I get a warning that seems normal according to the Webpack docs.
source
share