-
Notifications
You must be signed in to change notification settings - Fork 5
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
Dynamic Imports & Vite #7
Comments
@mattbloomfield I looked into this again a couple of months ago using vite-plugin/vite-plugin-dynamic-import and initially thought I'd found a way of doing it, only to find that it only works in development builds but not production builds. It is something we're very keen to get working. I'll leave this issue open and update when we find a way. |
Vite 6 released in late November - we'll be looking at dynamic imports with Vite 6 shortly |
Sweet! |
Another way to handle this issue is to lazyload only the big libraries from your behaviors. This way of importing (with no variables in the names) is working fine with Vite
|
Hi all, I know you call out in the docs that Vite does not support Dynamic Imports due to limitations with rollup... but I was curious if anything has changed over the past few years or if anyone has found a workaround?
The text was updated successfully, but these errors were encountered: