rechoir
rechoir copied to clipboard
Prepare a node environment to require files with different extensions.
I use ts for my gulpfile, but some of the plugins i use (gulp-imagemin specifically), are esm. So having a way to use both would be useful, as otherwise when...
This replaces the dependency on resolve with node's native require.resolve method which supports custom paths as of [node 8.9.0](https://nodejs.org/dist/latest-v8.x/docs/api/modules.html#modules_require_resolve_request_options). This will address false positive findings related to [resolve's `monorepo-symlink-test`](https://github.com/browserify/resolve/issues/312) file.