dep-tree
dep-tree copied to clipboard
Support node subpath imports
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
package.json imports are not currently supported, but they definitely should, I can take this.