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

Doesn't look like subpath imports will work for users with default moduleResolution #15

Open
jedwards1211 opened this issue Dec 11, 2024 · 0 comments

Comments

@jedwards1211
Copy link

If I want to publish a package foo and allow people to import bar from 'foo/bar', it looks like that won't work with the way tsconfig-to-dual-package structures the output.

The default moduleResolution setting ignores export maps, so any export map entry for "./bar" won't work. The only way for a package to support this without any TS users running into issues, is to output all CJS and ESM files into the root of the package with different extensions, instead of using separate subdirectories.

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

1 participant