dep-tree icon indicating copy to clipboard operation
dep-tree copied to clipboard

Support node subpath imports

Open soulofmischief opened this issue 1 year ago • 1 comments

The imports field in package.json is ignored.

Example:

"imports": {
    "#Assets/*": "./src/assets/*",
    "#Config": "./src/config.js",
    "#Lib": "./src/lib/index.js",
    "#Lib/*": "./src/lib/*",
    "#Models": "./src/models/index.js",
    "#Models/*": "./src/models/*",
    "#Styles/*": "./src/styles/*"
  }

Translating my imports map into tsconfig.json paths works as expected.

More information: https://nodejs.org/api/packages.html#subpath-imports

soulofmischief avatar Feb 04 '24 04:02 soulofmischief

package.json imports are not currently supported, but they definitely should, I can take this.

gabotechs avatar Feb 04 '24 06:02 gabotechs