I am trying to create a bundle.js, and using exports-loader in chunks may lead to jQuery undefined sometimes. By using imports-loader, webpack understand dependencies better and work well.
imports-loader makes webpack understand more about dependencies that just export jQuery into global namespace.
I am trying to create a bundle.js, and using
exports-loader
in chunks may lead tojQuery undefined
sometimes. By usingimports-loader
, webpack understand dependencies better and work well.imports-loader
makes webpack understand more about dependencies that just export jQuery into global namespace.