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
Issue is, Webpack v5 does a build, emits files and watches for changes. On any change, the rebuild happens almost instantaneously.
Whereas in Vite, build happens successfully and watches for changes. On change, it's a full rebuild taking more time than initial first build rather than doing incremental build.
Intially run command "npm run vite:watch", time it takes to build is around ~10s. Modify a file and check the build time, it's around ~4s.
Now run command, "npm run dev:webpack", intial build roughly takes the same amount of time. Modify a file and check the build time, it's less than ~1s around 600ms.
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.
Hello @Ruthvik94. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs reproduction will be closed if they have no activity within 3 days.
Ruthvik94
changed the title
--watch mode does full re-build instead of incremental build
**--watch** mode does full re-build instead of incremental build
Mar 1, 2024
Ruthvik94
changed the title
**--watch** mode does full re-build instead of incremental build
<code>--watch</code> mode does full re-build instead of incremental build
Mar 1, 2024
Ruthvik94
changed the title
<code>--watch</code> mode does full re-build instead of incremental build
--watch mode does full re-build instead of incremental build
Mar 1, 2024
Describe the bug
My Vite config:
webpack config: similar to above vite config with minor changes to be compatible with webpack v5
Issue is, Webpack v5 does a build, emits files and watches for changes. On any change, the rebuild happens almost instantaneously.
Whereas in Vite, build happens successfully and watches for changes. On change, it's a full rebuild taking more time than initial first build rather than doing incremental build.
Reproduction
https://stackblitz.com/edit/vitejs-vite-1ytjiw
Steps to reproduce
Intially run command "npm run vite:watch", time it takes to build is around ~10s. Modify a file and check the build time, it's around ~4s.
Now run command, "npm run dev:webpack", intial build roughly takes the same amount of time. Modify a file and check the build time, it's less than ~1s around 600ms.
System Info
'''shell
Windows, mac
'''
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: