-
Notifications
You must be signed in to change notification settings - Fork 21
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
Suggestion: Use tree-shaking information when generating third party dependencies #380
Comments
Hi @lukastaegert, |
@lukastaegert I opened a pull request for this, if you few minutes to take a look and tell me if I missed something ;) |
I can take a look this evening, thanks for being responsive to this! |
Ok, did it right away, thanks! |
Hi, |
At the moment, this plugin will list all imported dependencies in the license file even though I may not be using any code from those dependencies due to tree-shaking.
This could be improved substantially by not relying on the load hook to identify dependencies but instead by using the bundle information in generateBundle, which lists for each chunk the module ids included in the chunk + the rendered length (which should be 0 for tree-shaken modules).
The text was updated successfully, but these errors were encountered: