tnfe / limu

High performance immutable lib alternative to immer with the same api, based on shallow copy on read and mark modified on write mechanism.
https://tnfe.github.io/limu
MIT License
220 stars 14 forks source link

支持ESM #4

Closed geekact closed 2 years ago

geekact commented 2 years ago
  1. package.json缺少module字段和sideEffects字段,无法进行摇树
  2. package.json缺少exports字段,next.js以及其它node12+环境恐怕无法使用。

推荐使用 tsup 打包

fantasticsoul commented 2 years ago

收到建议,下个版本加上这些优化,感谢提供的tsup工具,我回头调研下

fantasticsoul commented 2 years ago

已导出module字段

fantasticsoul commented 12 months ago

目前开源社区唯一一款同时支持 atom/share + 依赖收集 双特性的状态库helux诞生了 ,可以了解和体验下哦。 示例演示了atom、atom链、share、share链,深依赖收集更新、watch 主要特性 https://codesandbox.io/s/helux-demo-ts-539scq?file=/src/App.tsx