Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持ESM #4

Closed
geekact opened this issue May 15, 2022 · 3 comments
Closed

支持ESM #4

geekact opened this issue May 15, 2022 · 3 comments

Comments

@geekact
Copy link

geekact commented May 15, 2022

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

推荐使用 tsup 打包

@fantasticsoul
Copy link
Member

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

@fantasticsoul
Copy link
Member

已导出module字段

@fantasticsoul
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants