Is it possible to have two bundles that import the same dependency but don’t cause code duplication without having to add a script tag for a bundle like shared.bundle.js
?
For example:
entry1 // Imports lodash
entry2 // Imports lodash as well
Output:
entry1.bundle.js
entry2.bundle.js
// No extra bundle for shared dependencies
// lodash is not duplicated