Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ESM imports on Windows #3585

Merged
merged 3 commits into from Jan 29, 2023
Merged

Commits on Jan 24, 2023

  1. Fix ESM imports on Windows

    When `import()`ing an ES module from the `requireModule()` utility
    function, convert the `fullpath` argument to a `file://` URL as expected
    by Node.js' ESM loader.
    
    This resolves error `ERR_UNSUPPORTED_ESM_URL_SCHEME` on Windows, where
    absolute paths are preceded by a drive letter and cannot be interpreted
    as URLs.
    nchevsky committed Jan 24, 2023
    Copy the full SHA
    c30fcb3 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2023

  1. Update requireModule.js

    beatfactor committed Jan 29, 2023
    Copy the full SHA
    98fe6e0 View commit details
    Browse the repository at this point in the history
  2. Update requireModule.js

    beatfactor committed Jan 29, 2023
    Copy the full SHA
    d4ba53c View commit details
    Browse the repository at this point in the history