Skip to content

doc: createRequire can take import.meta.url directly

This PR updates the createRequire example in https://nodejs.org/api/esm.html#esm_commonjs_json_and_native_modules to follow the new createRequire behavior, as opposed to the deprecated createRequireFromPath behavior. cc @MylesBorins

Checklist

Merge request reports

Loading