Skip to content

Commit

Permalink
fix: build fails on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rturnq committed Feb 1, 2025
1 parent 2a39fe2 commit 295f68b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-apricots-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marko/run": patch
---

Fix build failing on Windows
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lint": "eslint --format unix . && prettier . --check --with-node-modules --log-level=warn",
"prepare": "husky",
"report": "open ./coverage/lcov-report/index.html",
"test": "cross-env NODE_ENV=test NODE_OPTIONS='$NODE_OPTIONS --import tsx' mocha",
"test": "cross-env NODE_ENV=test NODE_OPTIONS=\"$NODE_OPTIONS --import tsx\" mocha",
"test:update": "cross-env UPDATE_EXPECTATIONS=1 npm test -- --update"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/run/src/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export default function markoRun(opts: Options = {}): Plugin[] {
},
async resolveId(importee, importer) {
if (importee === "@marko/run/router") {
return path.resolve(root, ROUTER_FILENAME);
return normalizePath(path.resolve(root, ROUTER_FILENAME));
} else if (
importee.endsWith(".marko") &&
importee.includes(relativeEntryFilesDirPosix)
Expand Down

0 comments on commit 295f68b

Please sign in to comment.