Skip to content

Commit

Permalink
refactor(vitest.config.ts): use URL constructor for alias to ensure c…
Browse files Browse the repository at this point in the history
…ross-platform path resolution
  • Loading branch information
Bluzzi committed Oct 13, 2024
1 parent f6bb6cf commit 5ee3b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
},
resolve: {
alias: {
"#/": "./src/"
"#/": new URL("./src/", import.meta.url).pathname
}
}
});

0 comments on commit 5ee3b9b

Please sign in to comment.