> 2000+ component.vue,"vite dev" is slow(15min+), "vite build " is Slow(50min+),out of memory(17G+)
See original GitHub issueDescribe the bug
2000+ component.vue,vite dev is slow(15min+), vite build is Slow(50min+),out of memory(17G+)
Generally, a sass project has 100 route page, which I think is normal. Each route has 30+component.vue to implement different component functions.
This problem is very serious, and we are already trying micro web, which is just one of 10 sub apps
this is Repository for example: https://github.com/cayweb778/testvite.git
Reproduction
https://github.com/cayweb778/testvite.git
Steps to reproduce
2000+ component.vue,vite dev is slow(15min+), vite build is Slow(50min+),out of memory(17G+)
System Info
> 2000+ component.vue,vite dev is slow(15min+), vite build is Slow(50min+),out of memory(17G+)
Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- 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 vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created 10 months ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Troubleshooting - Vite
Switch to another package manager (e.g. pnpm , yarn ); Remove & from the path to your project. Dev Server #. Requests are...
Read more >How to Migrate from Vue CLI to Vite - Vue School Blog
Learn how to migrate from Vue CLI to Vite in 9 simple steps for a faster and more streamlined developer experience.
Read more >What is Vitejs? An Overview of the New Front-end Build Tool
Need a simpler way to set up a front-end dev environment? With Vite, you can be up and running with Vue, React and...
Read more >How JavaScript works: A deep dive into Vite - SessionStack Blog
There are two main issues with bundle-based build tools: slow dev-server cold-start and slow updates. Also, we will learn about these issues and ......
Read more >Understanding a Comparison: Webpack vs ViteJS - Radixweb
Vite JS is a front-end dev tool that supports React, Vue, and Preact. ... entails working in slow development and production environment.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
rollup issues : https://github.com/rollup/rollup/issues/4732
我还是有这个问题,升级了vite4,windows打包要1分钟,mac mini只要30s