Skip to content
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

Fixed package.json#exports.types #1150

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

Andarist
Copy link

@Andarist Andarist commented Apr 3, 2023

When relying on exports.types for loading types, this condition has to come first. exports are order-dependent - tests/loaded from the top to the bottom

@@ -2,7 +2,6 @@
"name": "@stitches/core",
"version": "1.3.1-1",
"description": "The modern CSS-in-JS library",
"type": "module",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that you actually needed this. You still provide exports.import after all. Having those packages as modules changes how .js (and this .d.ts) files are treated and supporting types with this setup would be much more complicated. So I think that there is no harm if we just remove this from here to make types work.

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