Package Exports
- @loaderkit/resolve/adapter
- @loaderkit/resolve/cjs
- @loaderkit/resolve/esm
- @loaderkit/resolve/fs
- @loaderkit/resolve/node-modules
Readme
🔎 @loaderkit/resolve - General purpose nodejs module resolver
An accurate & abstract implementation of the nodejs module resolution algorithms. It implements both the CommonJS and modules algorithms. Originally authored for arethetypeswrong.
See also: resolve, enhanced-resolve, and esm-resolve. The main point of this package is accuracy with the default nodejs resolution algorithms.
- Does nothing that the nodejs default resolver doesn't do
- Runs in a web browser w/ abstract filesystems
- Sensible TypeScript-first types
- Shakeable ESM exports
- Promise & synchronous implementations