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

esm: better error message using commonjs hint #31906

Closed
wants to merge 1 commit into from

Commits on Apr 21, 2020

  1. esm: improve commonjs hint on module not found

    Run CommonJS resolver only if `error.code` is ERR_MODULE_NOT_FOUND.
    Avoid using absolute paths in hint by:
    * using a relative (to the parent) path if the specifier is a relative path
    * using a `pkg/x.js` format if the specifier is bare (e.g. `pkg/x`)
    dnlup committed Apr 21, 2020
    Copy the full SHA
    6511767 View commit details
    Browse the repository at this point in the history