absolute ESM imports don't support directory imports either
This commit is contained in:
parent
6fc98af1d0
commit
5b8f3d038b
|
|
@ -156,7 +156,7 @@ export function resolveHook(filename: string, specifier: string, dontResolveDire
|
||||||
if (path.isAbsolute(specifier)) {
|
if (path.isAbsolute(specifier)) {
|
||||||
// Handle absolute file paths like `import '/path/to/file'`
|
// Handle absolute file paths like `import '/path/to/file'`
|
||||||
// Do not handle module imports like `import 'fs'`
|
// Do not handle module imports like `import 'fs'`
|
||||||
return resolveImportSpecifierExtension(specifier, dontResolveDirectories);
|
return resolveImportSpecifierExtension(specifier, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue