Skip to content

Conversation

@Mrtenz
Copy link

@Mrtenz Mrtenz commented Oct 7, 2024

The package currently only specifies a main (for CJS) and module (for ESM) field, but Node.js does not support the module field. I've added an exports field which is the standard for package exports nowadays, and ensures modern tools that don't support module can also use the ESM version.

Note that this is technically a breaking change, as it's no longer possible for packages to import files from dist directly when exports is specified. For example, import 'cockatiel/dist/some-file.js'; will no longer 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