Gets a require function suitable for the current runtime. In Node-like runtimes, it uses createRequire. In other runtimes, it returns a function that throws.
require
createRequire
The require function.
Gets a
requirefunction suitable for the current runtime. In Node-like runtimes, it usescreateRequire. In other runtimes, it returns a function that throws.