Skip to content

Commit f883273

Browse files
committed
fix(hot reload): normalize files path in windows
resolves #2872
1 parent 9fdc4d6 commit f883273

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/dev.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import crypto from 'node:crypto'
2-
import { join } from 'node:path'
32
import { readFile } from 'node:fs/promises'
43
import type { IncomingMessage } from 'node:http'
4+
import { join, resolve } from 'pathe'
55
import Database from 'better-sqlite3'
66
import type { Nuxt } from '@nuxt/schema'
77
import { addVitePlugin, isIgnored, updateTemplates, useLogger } from '@nuxt/kit'
88
import type { ConsolaInstance } from 'consola'
99
import chokidar from 'chokidar'
1010
import micromatch from 'micromatch'
11-
import { resolve } from 'pathe'
1211
import type { WebSocket } from 'ws'
1312
import { WebSocketServer } from 'ws'
1413
import { listen, type Listener } from 'listhen'

0 commit comments

Comments
 (0)