Replies: 4 comments 21 replies
-
Available using: https://vitejs.dev/config/#optimizedeps-include |
Beta Was this translation helpful? Give feedback.
-
We already have 1600 files and it's getting a pain to worth with the project. Build time is extremely fast, yet loading in the browser is very slow. We might even pass 3K files based on our expansion plans. We would also welcome this feature very much. |
Beta Was this translation helpful? Give feedback.
-
I want to chime in that we are facing the same problem. On dev the initial page load fetches ~3.6K files... This is an insane amount. |
Beta Was this translation helpful? Give feedback.
-
Anyone make any progress on this or have idea how to improve it? This is a huge pain point for devs of large projects. |
Beta Was this translation helpful? Give feedback.
-
Currently, vite doesn't perform well with large projects with a lot of modules (1000+) on
dev
mode. The bottleneck is on the browser side:The bundled app is less than 50KB but it requires a lot of dependencies (I'll provide a sample repo soon). So currently vitejs cannot be used for large or very fine grained applications 😢
We could probably fix it by bundling and caching on the fly some of the modules. It's not an simple task, but this could help a lot to scale vitejs.
Other ideas or solutions ?
Beta Was this translation helpful? Give feedback.
All reactions