Skip to content

Commit

Permalink
fix: issue with vite not finding some virtual file paths (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey authored Apr 30, 2022
1 parent 1b36765 commit 3fd8465
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3fd8465

Please sign in to comment.