A promise based node resolution library based on enhanced-resolve.
[!CAUTION]
This plugin development is deprecated and discontinued, as we are going to remove support for the style resolution field in package.json. It's recommended to use the oxc-resolver package instead.
Install
npm i @chialab/node-resolve -D
yarn add @chialab/node-resolve -D
pnpm add @chialab/node-resolve -D
Usage
import { resolve } from '@chialab/node-resolve';
await resolve('lit', '/path/to/www/js');