question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

> 2000+ component.vue,"vite dev" is slow(15min+), "vite build " is Slow(50min+),out of memory(17G+)

See original GitHub issue

Describe 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

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cheng-iocommented, Dec 7, 2022
0reactions
zz541843commented, Dec 17, 2022

我还是有这个问题,升级了vite4,windows打包要1分钟,mac mini只要30s

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found