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 4bd7558 commit ecb7c20Copy full SHA for ecb7c20
lib/src/legacy/utils.ts
@@ -38,7 +38,13 @@ export function removeLegacyImporter(string: string): string {
38
// syntax.
39
export function removeLegacyImporterFromSpan(span: SourceSpan): SourceSpan {
40
if (!span.url) return span;
41
- return {...span, url: new URL(removeLegacyImporter(span.url.toString()))};
+ return {
42
+ ...span,
43
+ url: new URL(
44
+ removeLegacyImporter(span.url.toString()),
45
+ pathToFileURL(process.cwd())
46
+ ),
47
+ };
48
}
49
50
// Converts [path] to a `file:` URL and adds the [legacyImporterProtocolPrefix]
0 commit comments