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
incorrect tree shaking with import * as foo
+ export default foo
#4751
Labels
Comments
This doesn't happen with 2.79.1 and happens with 3.0.0. |
7 tasks
10 tasks
As it turns out, the case where a namespace is itself nested inside an object was not yet handled correctly. Fix for this and similar issues at #4758. |
lukastaegert
added a commit
that referenced
this issue
Dec 17, 2022
This issue has been resolved via #4758 as part of rollup@3.7.5. You can test it via |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rollup Version
3.7.4
Operating System (or Browser)
stackblitz
Node Version (if applicable)
No response
Link To Reproduction
https://stackblitz.com/edit/rollup-template-vg2pmh?file=src%2Fmain.js
Expected Behaviour
Running the bundled file output
as before bundled.
Actual Behaviour
Running the bundled file output
.
api.greetings.hello();
is removed even if it has a side effect.It works when
src/api/index.js
is changed like belowOriginal issue: vitejs/vite#11356
The text was updated successfully, but these errors were encountered: