Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit b28ead1

Browse filesBrowse files
committed
fix format
1 parent 9f45b93 commit b28ead1
Copy full SHA for b28ead1

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎src/index.ts

Copy file name to clipboardExpand all lines: src/index.ts
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,13 +478,13 @@ function parseModuleName(
478478
if (meta && meta.url) {
479479
scriptURL = meta.url;
480480
} else {
481-
scriptURL = new URL("file:///" + path.dirname(containingFile) + "/")
481+
scriptURL = new URL("file:///" + path.dirname(containingFile) + "/");
482482
}
483483
} else {
484-
scriptURL = new URL("file:///" + path.dirname(containingFile) + "/")
484+
scriptURL = new URL("file:///" + path.dirname(containingFile) + "/");
485485
}
486486

487-
logger && logger.info(`baseUrl: ${scriptURL}`)
487+
logger && logger.info(`baseUrl: ${scriptURL}`);
488488

489489
const moduleUrl = resolve(
490490
moduleName,
@@ -493,11 +493,11 @@ function parseModuleName(
493493
);
494494

495495
if (moduleUrl.protocol === "file:") {
496-
return fileURLToPath(moduleUrl.href)
496+
return fileURLToPath(moduleUrl.href);
497497
}
498498

499499
if (moduleUrl.protocol === "http:" || moduleUrl.protocol === "https:") {
500-
return moduleUrl.href
500+
return moduleUrl.href;
501501
}
502502

503503
// just support protocol: file, http, https

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.