Rich-Harris / estree-walker

Traverse an ESTree-compliant AST
MIT License
389 stars 37 forks source link

fix(esm): add types conditional export #31

Closed AndrewLeedham closed 1 year ago

AndrewLeedham commented 2 years ago

Adds types conditional export in preparation for ESM support in TypeScript: Failing Playground Link

I included it as the first item based on this clause in the docs: https://nodejs.org/api/packages.html#:~:text=This%20condition%20should%20always%20be%20included%20first.

Rich-Harris commented 1 year ago

thank you! released 3.0.2