Skip to content

Commit

Permalink
fix: use hook to avoid rece conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 14, 2023
1 parent b31c3d5 commit bc98376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class NuxtDevServer extends EventEmitter {

// Connect Vite HMR
if (!process.env.NUXI_DISABLE_VITE_HMR) {
this._currentNuxt.hooks.hookOnce(
this._currentNuxt.hooks.hook(
'vite:extendConfig',
(config, { isClient }) => {
if (isClient && config.server) {
Expand Down

0 comments on commit bc98376

Please sign in to comment.