lezer-parser / highlight

Syntax highlighting from Lezer trees
MIT License
30 stars 9 forks source link

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

Closed dmaretskyi closed 8 months ago

marijnh commented 10 months ago

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

unconed commented 8 months ago

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.