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
We have recently moved to using Vite as our tooling and we noticed a rather long delay when loading a page through the dev server. It seems like the dependency pre-bundling doesn't work for one of our modules. The module in question is a pure ESM package which includes Vue SFCs. If we now import one of these components, every file gets downloaded by the browser instead of being pre-bundled.
Even worse if one of these components imports from something like lodash-es, everything from there gets downloaded as well, which leads to the long delay when loading a page.
Is there a way to get this to work or is this just not supported on Vite's end?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey 👋
We have recently moved to using Vite as our tooling and we noticed a rather long delay when loading a page through the dev server. It seems like the dependency pre-bundling doesn't work for one of our modules. The module in question is a pure ESM package which includes Vue SFCs. If we now import one of these components, every file gets downloaded by the browser instead of being pre-bundled.
Even worse if one of these components imports from something like
lodash-es
, everything from there gets downloaded as well, which leads to the long delay when loading a page.Is there a way to get this to work or is this just not supported on Vite's end?
Beta Was this translation helpful? Give feedback.
All reactions