| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -758,6 +758,9 @@ function defaultResolve(specifier, context = {}, defaultResolveUnused) { | |||
| 758 | 758 | // resolved CommonJS module | |
| 759 | 759 | if (error.code === 'ERR_MODULE_NOT_FOUND' || | |
| 760 | 760 | error.code === 'ERR_UNSUPPORTED_DIR_IMPORT') { | |
| 761 | + if (StringPrototypeStartsWith(specifier, 'file://')) { | ||
| 762 | + specifier = fileURLToPath(specifier); | ||
| 763 | + } | ||
| 761 | 764 | const found = resolveAsCommonJS(specifier, parentURL); | |
| 762 | 765 | if (found) { | |
| 763 | 766 | // Modify the stack and message string to include the hint | |
| Back | FazBrowse Home | New Git URL |
0 commit comments