I'm not sure if this is expected, but I'm basically doing something like:
let loader = require('bundle?lazy&name=my-chunk!./file.js');
function doSomething() {
loader(exportedObj => ...do stuff..)
}
I assumed that the first time I called doSomething, it would fetch the bundle, and subsequent calls would used the previously fetched bundle, but it appears a new script tag is placed in
I'm not sure if this is expected, but I'm basically doing something like:
I assumed that the first time I called doSomething, it would fetch the bundle, and subsequent calls would used the previously fetched bundle, but it appears a new script tag is placed in
each time.Is this expected?