Skip to content

fix: package exports and ESM support #167

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

Merged
merged 16 commits into from
Jan 8, 2023
Merged

fix: package exports and ESM support #167

merged 16 commits into from
Jan 8, 2023

Conversation

cseas
Copy link
Collaborator

@cseas cseas commented Jan 7, 2023

Description

TypeScript team has a strong stand that they won't rewrite imports to be compatible with node. So the only way to get valid node compatible ESM output (which requires file extensions in imports) is to write valid ESM in the project. The combination of type: module in package and module: NodeNext in tsconfig enforces this format.

Valid ESM in -> Valid ESM out

Checklist

  • My changes generate no new warnings
  • I've done a self-review of this pull request

@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2023

🦋 Changeset detected

Latest commit: 30b3e13

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
hazel-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cseas cseas changed the title fix: package exports fix: package exports and ESM support Jan 8, 2023
@cseas cseas merged commit 1dff6c5 into main Jan 8, 2023
@cseas cseas deleted the fix-output branch January 8, 2023 12:31
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.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy