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
iife
code generated by vite3 is not working
#9318
Comments
Make sense to me. Rollup says that the name should be global, so it should be var instead. |
This seems to be an upstream issue. When |
yep,it was okay when i use vite2. I just use umd instead now. |
Interesting. While |
Fix at rollup/rollup#4588 |
Thanks! Closing as rollup 2.77.1 that includes the fix was released. |
Describe the bug
I was building a lib generated in
iife
mode, and it is not working as soon as i put it on cdn.Reproduction
https://github.com/Jackie1210/vite-lib-iife-bug-repo
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: