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 6e4ccdf commit d2460b7Copy full SHA for d2460b7
packages/vite-node/src/server.ts
@@ -150,8 +150,9 @@ export class ViteNodeServer {
150
151
const cacheDir = this.options.deps?.cacheDir
152
153
- if (cacheDir && id.includes(cacheDir) && !id.includes(this.server.config.root)) {
154
- id = join(this.server.config.root, id)
+ if (cacheDir && id.includes(cacheDir)) {
+ if (!id.startsWith(this.server.config.root))
155
+ id = join(this.server.config.root, id)
156
const timeout = setTimeout(() => {
157
throw new Error(`ViteNodeServer: ${id} not found. This is a bug, please report it.`)
158
}, 5000) // CI can be quite slow
0 commit comments