Closed sindresorhus closed 3 years ago
Added module.createRequireFromPath(filename). This new method can be used to create a custom require function that will resolve modules relative to the filename path. #19360 - https://nodejs.org/en/blog/release/v10.12.0/
https://github.com/sindresorhus/import-from/pull/6#issuecomment-497061325