Update package.json exports to support moduleResolution: bundler #11

Closed
dmaretskyi wants to merge 1 commit from patch-1 into main
dmaretskyi commented 2023-10-30 17:48:43 +01:00 (Migrated from github.com)
No description provided.
marijnh commented 2023-10-30 18:30:57 +01:00 (Migrated from github.com)

I'm having a strange sense of deja-vu. Does the conclusion in that PR also fit here?

I'm having a [strange sense of deja-vu](https://github.com/lezer-parser/highlight/pull/10). Does the conclusion in that PR also fit here?
unconed commented 2024-01-23 22:08:19 +01:00 (Migrated from github.com)

I've encountered issues in nodenext mode where importing can cause it to go look for .d.cts instead of .d.ts. Explicitly specifying the types filename is preferable to avoid file extension confusion in mixed node/bundler environments, e.g. when you wish to run ts-node scripts.

I've encountered issues in `nodenext` mode where importing can cause it to go look for .d.cts instead of .d.ts. Explicitly specifying the types filename is preferable to avoid file extension confusion in mixed node/bundler environments, e.g. when you wish to run `ts-node` scripts.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/highlight!11
No description provided.