Closed geekact closed 2 years ago
收到建议,下个版本加上这些优化,感谢提供的tsup工具,我回头调研下
已导出module字段
目前开源社区唯一一款同时支持 atom/share + 依赖收集 双特性的状态库helux诞生了 ,可以了解和体验下哦。 示例演示了atom、atom链、share、share链,深依赖收集更新、watch 主要特性 https://codesandbox.io/s/helux-demo-ts-539scq?file=/src/App.tsx
module
字段和sideEffects
字段,无法进行摇树exports
字段,next.js以及其它node12+环境恐怕无法使用。推荐使用 tsup 打包