Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support node subpath imports #71

Open
soulofmischief opened this issue Feb 4, 2024 · 1 comment
Open

Support node subpath imports #71

soulofmischief opened this issue Feb 4, 2024 · 1 comment

Comments

@soulofmischief
Copy link

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

@gabotechs
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants