Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
3 commits merged into from
Jun 28, 2022
Merged

Conversation

goto-bus-stop
Copy link
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

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

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