"export *" prevent shaking and removal of unused code #1311
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
@linaria/[email protected]
,@linaria/[email protected]
Description
The fixture in the repro case is based on the real project where a lot of "export *" are used. This confuses current parsing/shaking logic and forces to evaluate more code than needed, in this case:
This fixture is good by two reasons:
export *
extends
Reproducible Demo
yarn
yarn webpack
The text was updated successfully, but these errors were encountered: