-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Ensure no duplicate code in preview when using vite #20594
Conversation
I verified that
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow, nice win! Thanks for figuring this one out.
@ndelangen see #20643 - It appears the vite-plugin-externals plugin breaks HMR. Might work with the |
@thebuilder Thanks, but unfortunately we need to replace the externals in dev as well. You can watch #20655 for any progress. |
I found that searching in |
@IanVS the way I used was this:
I then do the same for build-mode. |
Issue: #20514
What I did
I switched out one rollup plugin for a vite plugin, and after a bit of experimentation I found the setting that would cause no duplicate code, and make vite 100% use the prebundled code, and never include prebundled code