Uses url.pathToFileURL when loading using await import(), because that only supports URLs. It worked coincidentally on Linux and MacOS, because they use the same path separator as URLs (/).
Commit Message Summary (CHANGELOG)
fix: Convert paths to fix ERR_UNSUPPORTED_ESM_URL_SCHEME errors on Windows
Type
[ ] CI
[X] Fix
[ ] Perf
[ ] Docs
[ ] Test
[ ] Chore
[ ] Style
[ ] Build
[ ] Feature
[ ] Refactor
SemVer
[X] Fix (:label: Patch)
[ ] Feature (:label: Minor)
[ ] Breaking Change (:label: Major)
Issues
Fixes #237.
Checklist
[X] Lint and unit tests pass with my changes
[ ] I have added tests that prove my fix is effective/works
Notable Changes
Uses
url.pathToFileURL
when loading usingawait import()
, because that only supports URLs. It worked coincidentally on Linux and MacOS, because they use the same path separator as URLs (/
).Commit Message Summary (CHANGELOG)
Type
SemVer
Issues
Checklist