We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What is the current behavior?
I'm trying to use the new asset loading api (new URL) and noticed that unused code isn't being tree-shaked
If the current behavior is a bug, please provide the steps to reproduce.
Exmaple repo follow steps in readme
What is the expected behavior?
I expected the bundle to not contain the asset module and the dist folder to not contain the asset file.
Other relevant information: webpack version: 5.2.0 Node.js version: 12.19.0 Operating System: Windows 10 Additional tools: none
The text was updated successfully, but these errors were encountered:
@sokra I also notice that webpack_require.p is not being tree-shaked too. probably separate issue.
Sorry, something went wrong.
allow inner graph shaking for new URL()
4ec418c
fixes #11818
Successfully merging a pull request may close this issue.
Bug report
What is the current behavior?
I'm trying to use the new asset loading api (new URL) and noticed that unused code isn't being tree-shaked
If the current behavior is a bug, please provide the steps to reproduce.
Exmaple repo
follow steps in readme
What is the expected behavior?
I expected the bundle to not contain the asset module and the dist folder to not contain the asset file.
Other relevant information:
webpack version: 5.2.0
Node.js version: 12.19.0
Operating System: Windows 10
Additional tools: none
The text was updated successfully, but these errors were encountered: