diff --git a/src/index.ts b/src/index.ts index 3f64513..29a2295 100644 --- a/src/index.ts +++ b/src/index.ts @@ -83,9 +83,7 @@ export default function markoPlugin(opts: Options = {}): vite.Plugin[] { from, dep ) => { - const query = `${virtualFileQuery}&id=${encodeURIComponent( - dep.virtualPath - )}`; + const query = `${virtualFileQuery}&id=${normalizePath(dep.virtualPath)}`; const id = normalizePath(from) + query; if (devServer) {