Skip to content

Commit 0ff384b

Browse files
committed
fix: skip virtual modules
1 parent 917305f commit 0ff384b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const resolveTypescriptPaths = (options: Options = {}) => {
66
return {
77
name: 'resolve-typescript-paths',
88
resolveId: (importee: string, importer: string) => {
9-
if (!compilerOptions.paths) {
9+
if (importee.startsWith('\0') || !compilerOptions.paths) {
1010
return null;
1111
}
1212

0 commit comments

Comments
 (0)