-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
[Enhancement][Treeshaking]: treeshake the new Class #8693
Comments
😄 I do not know why rollup treeshakes this case, this case is very common for treeshaking invalidation, literally speaking, |
Your case is wrong, i fixed it 😂 |
I can ensure that it is a rollup "feature" by this behavior... real world normal cases |
What problem does this feature solve?
expected output
aligned with rollup
actual output
What does the proposed API look like?
https://rollupjs.org/repl/?version=4.28.1&shareable=JTdCJTIyZXhhbXBsZSUyMiUzQW51bGwlMkMlMjJtb2R1bGVzJTIyJTNBJTVCJTdCJTIyY29kZSUyMiUzQSUyMmltcG9ydCUyMCU3QiUyMGIlMjAlN0QlMjBmcm9tJTIwJy4lMkZxdXguanMnJTVDbmNvbnNvbGUubG9nKGIpJTIyJTJDJTIyaXNFbnRyeSUyMiUzQXRydWUlMkMlMjJuYW1lJTIyJTNBJTIybWFpbi5qcyUyMiU3RCUyQyU3QiUyMmNvZGUlMjIlM0ElMjJjbGFzcyUyMEElMjAlN0IlN0QlNUNuZXhwb3J0JTIwY29uc3QlMjBhJTIwJTNEJTIwbmV3JTIwQSgpJTNCJTVDbmV4cG9ydCUyMGNvbnN0JTIwYiUyMCUzRCUyMDElM0IlMjIlMkMlMjJpc0VudHJ5JTIyJTNBZmFsc2UlMkMlMjJuYW1lJTIyJTNBJTIycXV4LmpzJTIyJTdEJTVEJTJDJTIyb3B0aW9ucyUyMiUzQSU3QiUyMm91dHB1dCUyMiUzQSU3QiUyMmZvcm1hdCUyMiUzQSUyMmVzJTIyJTdEJTdEJTdE
https://github.com/SoonIter/rslib-treeshaking-new-class
The text was updated successfully, but these errors were encountered: