Skip to content

Commit ad4479a

Browse files
committed
fix: Content Hot reload
close #3440
1 parent e863443 commit ad4479a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export async function watchContents(nuxt: Nuxt, options: ModuleOptions, manifest
111111
ignoreInitial: true,
112112
ignored: (path) => {
113113
const match = sourceMap.find(({ source, cwd, prefix }) => {
114-
if (path + '/' === prefix) return true
114+
if (withTrailingSlash(path) === prefix) return true
115115
if (prefix && path.startsWith(prefix)) {
116116
return micromatch.isMatch(
117117
path.substring(cwd.length),

0 commit comments

Comments
 (0)