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 3c4323c commit d08551fCopy full SHA for d08551f
packages/fastify-react/plugin/virtual.js
@@ -23,6 +23,11 @@ const virtualModules = [
23
export const prefix = /^\/?\$app\//
24
25
export async function resolveId (id) {
26
+ // Paths are prefixed with .. on Windows by the glob import
27
+ if (process.platform === 'win32' && /^\.\.\/[C-Z]:/.test(id)) {
28
+ return id.substring(3)
29
+ }
30
+
31
if (prefix.test(id)) {
32
const [, virtual] = id.split(prefix)
33
if (virtual) {
0 commit comments