Skip to content

Commit 0196ed2

Browse files
committed
fix: uts
1 parent bf584e3 commit 0196ed2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const isAsyncFunction = function (fn) {
4040
}
4141

4242
export const resolveImportModulePath = function (modulePath) {
43-
if (isWindows()) {
43+
if (isWindows() && modulePath === "string" && path.isAbsolute(modulePath)) {
4444
return pathToFileURL(modulePath).href
4545
}
4646
return modulePath

0 commit comments

Comments
 (0)