3 ms·
The problem here is that current gen bundler has a linking step that remove unused code if possible (called tree-shake in this context). This is conflicting wit
by mmis1000 3y ago
The problem here is that current gen bundler has a linking step that remove unused code if possible (called tree-shake in this context). This is conflicting with pre-bundle because it would cause anything to be bundled regardless of whether it is used. Or you will need to repackage the dependency when import changed. It's probably ok if you are in dev environment. But big package size isn't suitable for prod environment especially in a web page.