-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows #3
Windows #3
Changes from all commits
fe07092
db94dbb
d7ed40d
51b6d84
716c7eb
0244151
54f1a15
e954b8b
c24680c
acf955c
ad5d6f1
fc52fd2
d3b8eed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
"use strict"; | ||
|
||
import { isBuiltin } from "node:module"; | ||
import { join, resolve } from "node:path"; | ||
import { join, resolve } from "pathe"; | ||
|
||
async function getViteModuleNode(vite, file, ssr) { | ||
if (file.startsWith("node:") || isBuiltin(file)) { | ||
|
@@ -19,7 +19,7 @@ async function getViteModuleNode(vite, file, ssr) { | |
|
||
const id = resolvedId.id; | ||
|
||
const normalizedPath = resolve(id).replace(/\\/g, "/"); | ||
const normalizedPath = resolve(id); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
try { | ||
let node = await vite.moduleGraph.getModuleById(normalizedPath); | ||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -51,7 +51,7 @@ export function createDevManifest(app) { | |||||||
} else { | ||||||||
return { | ||||||||
output: { | ||||||||
path: absolutePath, | ||||||||
path: join(router.base, "@fs", absolutePath), | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this change will not in some modes: this change will not work, on the server we don't want to use @fs links. those are for the client. this is being used with the server actions setup. I should add a test for that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nksaraf What about LN 175? Should that also be reverted in that case? I did this in two places.
|
||||||||
}, | ||||||||
}; | ||||||||
} | ||||||||
|
@@ -173,7 +173,7 @@ export function createDevManifest(app) { | |||||||
]; | ||||||||
}, | ||||||||
output: { | ||||||||
path: absolutePath, | ||||||||
path: join(router.base, "@fs", absolutePath), | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure on this one but seems to work. If I remember it right dynamic import in lazy route would not work. vinxi/packages/vinxi-solid/lazy-route.jsx Lines 20 to 22 in 505dd51
|
||||||||
}, | ||||||||
}; | ||||||||
} | ||||||||
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -1,4 +1,4 @@ | ||||
import { relative } from "node:path"; | ||||
import { relative } from "pathe"; | ||||
import { fileURLToPath } from "node:url"; | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Manifest lookups in build would fail because of
|
||||
|
||||
/** | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These imports would fail because of characters being escaped generating paths like
C:goodjobwindows
vinxi/packages/vinxi/lib/build.js
Lines 457 to 460 in 505dd51