Skip to content

Commit

Permalink
file:// for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Sep 4, 2024
1 parent 422a18b commit bafab4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/rsc/rscWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ const getRoutesComponent: any = async () => {
throw new StatusError('No entry found for __rwjs__Routes', 404)
}

const routes = await import(routesPath)
const routes = await import(`file://${routesPath}`)

return routes.default
}
Expand Down

0 comments on commit bafab4c

Please sign in to comment.