You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When in library mode, Vite should disable the preload-helper for dynamic imports. What currently happens is that vite compiles imports that have preloads to
However, this is a problem when using a library in app mode which moves the files in the final output. This ends up creating errors because index3.js was renamed to index3.[hash].js, and only the import string was changed:
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Provide a description in this issue that describes the bug.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Describe the bug
When in library mode, Vite should disable the preload-helper for dynamic imports. What currently happens is that vite compiles imports that have preloads to
However, this is a problem when using a library in app mode which moves the files in the final output. This ends up creating errors because
index3.js
was renamed toindex3.[hash].js
, and only the import string was changed:So Chrome logs this
An ideal fix would be to disable preload altogether in library mode such as #3133.
Reproduction
A complicated reproduction is here: https://github.com/solidjs/solid-playground
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager:
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: