use-immer icon indicating copy to clipboard operation
use-immer copied to clipboard

Fix ESM exports in package.json. Update microbundle.

Open fedemp opened this issue 2 years ago • 0 comments

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.

fedemp avatar Oct 11 '23 14:10 fedemp