Skip to content

Commit 9da8450

Browse files
committed
one more relativeImport
1 parent a2b5c87 commit 9da8450

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/javascript/imports.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,7 @@ export function rewriteImports(output: any, rootNode: JavaScriptNode, sourcePath
8585
output.replaceLeft(
8686
node.source.start,
8787
node.source.end,
88-
JSON.stringify(
89-
isLocalImport(value, sourcePath)
90-
? relativeUrl(sourcePath, join("/_import/", dirname(sourcePath), value))
91-
: resolveImport(value)
92-
)
88+
JSON.stringify(isLocalImport(value, sourcePath) ? relativeImport(sourcePath, value) : resolveImport(value))
9389
);
9490
}
9591
},

0 commit comments

Comments
 (0)