Why is HMR in Nuxt v3 slow? #32788
Replies: 4 comments 1 reply
-
can you try to add a reproduction with: https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz? |
Beta Was this translation helpful? Give feedback.
-
The likely causes of slowness: Solutions:
Note: Avoid scanning .md or entire node_modules, or you'll get JIT lag.
Only enable highlight.langs you need. You’ve listed 20+, which bloats highlight.js SSR. Consider trimming to: langs: ['ts', 'js', 'vue', 'html', 'json']
In nuxt.config.ts:
|
Beta Was this translation helpful? Give feedback.
-
Another probable issue is an anti-virus solution running. They will scan each and every file before allowing it to be used |
Beta Was this translation helpful? Give feedback.
-
This is unlikely the case but if you are on Windows and use WSL (Windows Subsystem for Linux) a certain way for running dev servers, that could cause HMR to be painfully slow. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The update process is extremely slow.
Beta Was this translation helpful? Give feedback.
All reactions