My code
var $ = require('bundle?lazy&name=chunk.jquery!jquery');
It puts the jquery in theapp.bundle. But I want jquery to be a separate chunk which is lazy loaded only in the component that requires it. Why is it going into app.bundle and loading for all pages?
My code
var $ = require('bundle?lazy&name=chunk.jquery!jquery');
It puts the jquery in the
app.bundle
. But I want jquery to be a separate chunk which is lazy loaded only in the component that requires it. Why is it going intoapp.bundle
and loading for all pages?Just trying to get async jquery load.