Replies: 3 comments
-
I think it should be possible to add |
Beta Was this translation helpful? Give feedback.
-
@greeeg did you find a solution to this? |
Beta Was this translation helpful? Give feedback.
-
When i was experimenting with this i got to the conclusion that optimizeDeps.include and a named alias can solve this problem, but you have to be sure all your imports are using the alias. In my case this was not an option because the generated code itself referenced parts of it that obviously not used my alias. |
Beta Was this translation helpful? Give feedback.
-
Hello Vite community 👋
I'm working on a project in which some frontend files are autogenerated & are included in a
src/generated
folder.Instead of having Vite load every file over a different HTTP request & treat this folder as internal modules, I would like to benefit from pre-bundling & only load a single chunk/bundle for the whole folder.
Is this possible? Do we have examples in the docs?
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions