File tree 1 file changed +2
-1
lines changed
packages/vite/src/node/server 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ import {
76
76
numberToPos ,
77
77
prettifyUrl ,
78
78
timeFrom ,
79
+ unwrapId ,
79
80
} from '../utils'
80
81
import { FS_PREFIX } from '../constants'
81
82
import type { ResolvedConfig } from '../config'
@@ -313,7 +314,7 @@ export async function createPluginContainer(
313
314
} & Partial < PartialNull < ModuleOptions > > ,
314
315
) : Promise < ModuleInfo > {
315
316
// We may not have added this to our module graph yet, so ensure it exists
316
- await moduleGraph ?. ensureEntryFromUrl ( options . id )
317
+ await moduleGraph ?. ensureEntryFromUrl ( unwrapId ( options . id ) , this . ssr )
317
318
// Not all options passed to this function make sense in the context of loading individual files,
318
319
// but we can at least update the module info properties we support
319
320
updateModuleInfo ( options . id , options )
You can’t perform that action at this time.
0 commit comments