Skip to content

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