Skip to content

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

"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