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

Add exports map to package.json of @typescript/twoslash #3007

Open
benmccann opened this issue Dec 30, 2023 · 1 comment
Open

Add exports map to package.json of @typescript/twoslash #3007

benmccann opened this issue Dec 30, 2023 · 1 comment

Comments

@benmccann
Copy link
Contributor

I wanted to know if you'd be open to a PR for this. Twoslash distributes an ESM version, but there's no way to use it from Node.js since exports is not defined. We need to use the ESM version as some of our tooling is having issues with encountering a require

@jakebailey
Copy link
Member

I would send a PR if you have one in mind, but I almost doubt that the ESM bundle is actually intended to be used from Node.

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