File tree 1 file changed +5
-5
lines changed
packages/vite/src/node/plugins
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -206,12 +206,12 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin {
206
206
207
207
// explicit fs paths that starts with /@fs /*
208
208
if ( asSrc && id . startsWith ( FS_PREFIX ) ) {
209
- const fsPath = fsPathFromId ( id )
210
- res = tryFsResolve ( fsPath , options )
211
- debug ?.( `[@fs] ${ colors . cyan ( id ) } -> ${ colors . dim ( res ) } ` )
209
+ res = fsPathFromId ( id )
210
+ // We don't need to resolve these paths since they are already resolved
212
211
// always return here even if res doesn't exist since /@fs/ is explicit
213
- // if the file doesn't exist it should be a 404
214
- return ensureVersionQuery ( res || fsPath , id , options , depsOptimizer )
212
+ // if the file doesn't exist it should be a 404.
213
+ debug ?.( `[@fs] ${ colors . cyan ( id ) } -> ${ colors . dim ( res ) } ` )
214
+ return ensureVersionQuery ( res , id , options , depsOptimizer )
215
215
}
216
216
217
217
// URL
You can’t perform that action at this time.
0 commit comments