Skip to content

Entirely remove side-effect-free unused modules, closes #28#31

Merged
3 commits merged into
masterfrom
side-effects
Jun 28, 2022
Merged

Entirely remove side-effect-free unused modules, closes #28#31
3 commits merged into
masterfrom
side-effects

Conversation

@goto-bus-stop
Copy link
Copy Markdown
Member

If a module has sideEffects: false in its nearest package.json, and none of its exports are used, it is excluded from the bundle.

@sethvincent
Copy link
Copy Markdown

sethvincent commented Sep 26, 2019

Hi! I tried this branch out locally on a project with a large amount of unused require statements and this works great. Happy to help test this with other use cases if needed.

@kumavis
Copy link
Copy Markdown

kumavis commented Jun 2, 2022

@goto-bus-stop anything we need to help make this land?

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants