Skip to content

Commit

Permalink
Fix config reload (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-lee authored Oct 8, 2024
1 parent 9835aab commit aa16480
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/zudoku/src/vite/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export async function loadZudokuConfig(
const loadedConfig = await tsImport(configFilePath, {
parentURL: import.meta.url,
onImport: (file: string) => {
const path = fileURLToPath(pathToFileURL(file).href);
const path = fileURLToPath(
file.startsWith("file://") ? file : pathToFileURL(file).href,
);

if (path.startsWith(rootDir)) {
dependencies.push(path);
Expand Down

0 comments on commit aa16480

Please sign in to comment.