We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c907dc5 commit cf09564Copy full SHA for cf09564
packages/remix-dev/vite/styles.ts
@@ -37,7 +37,9 @@ const getStylesForFiles = async ({
37
38
try {
39
for (let file of files) {
40
- let normalizedPath = path.resolve(file).replace(/\\/g, "/");
+ let normalizedPath = path
41
+ .resolve(rootDirectory, file)
42
+ .replace(/\\/g, "/");
43
let node = await viteDevServer.moduleGraph.getModuleById(normalizedPath);
44
45
// If the module is only present in the client module graph, the module
0 commit comments