Skip to content

[v10.x] Backport createRequire to v10

This PR adds the createRequire API to Node.js v10 – which currently only has the deprecated createRequireFromPath available.

Note that this does not backport the deprecation of createRequireFromPath, given the fact that v10 is on maintenance mode, I figured that would not make sense to introduce a deprecation at this point.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading