Skip to content

fix(esm): add types conditional export#31

Merged
Rich-Harris merged 1 commit intoRich-Harris:masterfrom
AndrewLeedham:AL-esm-types
Jan 3, 2023
Merged

fix(esm): add types conditional export#31
Rich-Harris merged 1 commit intoRich-Harris:masterfrom
AndrewLeedham:AL-esm-types

Conversation

@AndrewLeedham
Copy link
Copy Markdown
Contributor

@AndrewLeedham AndrewLeedham commented Feb 7, 2022

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 Rich-Harris merged commit b4dc581 into Rich-Harris:master Jan 3, 2023
@Rich-Harris
Copy link
Copy Markdown
Owner

thank you! released 3.0.2

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

Successfully merging this pull request may close these issues.

2 participants