charkour / zundo

🍜 undo/redo middleware for zustand. <700 bytes
https://codesandbox.io/s/zundo-2dom9
MIT License
597 stars 19 forks source link

ESM is default file instead of CJS in v2.0.1 which is breaking. #143

Closed charkour closed 8 months ago

charkour commented 8 months ago

Adding "type": "module" changed the output from tsup. This isn't an issue with Node versions greater than v12, but something to fix (for example, Jest fails).

charkour commented 8 months ago

https://antfu.me/posts/publish-esm-and-cjs#tsup

charkour commented 8 months ago

https://publint.dev/zundo@2.0.1