immerjs / use-immer

Use immer to drive state with a React hooks
MIT License
4.04k stars 92 forks source link

Fix ESM exports in package.json. Update microbundle. #122

Closed fedemp closed 4 months ago

fedemp commented 12 months ago

Since this package is published as commonjs, es6 files are now published using the mjs extension.

Added more explicit file paths in the exports field, pointing to a unique declaration file for each bundle.

Declaration file is copied using the mts extension so it's explicitly marked as es6.

The package now passes the publint and Are the types wrong? tests.

mweststrate commented 4 months ago

Sorry, missed the PR earlier! Just released it as 0.10.0. Thanks!