wh-build-system
v2.0.28
Published
zkid sdk for zCloak Network
Downloads
7
Readme
zCloak SDK V2.0.0
New
- support multiple attesters
Targets (Framework)
- Minimal build system config(npm, babel, jest, eslint..)
- All in one package (no need to manage differents version of different sub packages)
- Remove non-EVM crypto packages and remain dependencies upgradable
- Add cli command
- Add Rust (or Go) language support
调研兼容commonjs+esm过程
- 参考
- 只在package.json中添加main和module,因为我一直在node环境中,所以一直调用的commonjs模块
- 后来想了一下只有在网页才会引用esm,本来准备打算用webpack,后来想起来react不是可以直接引用esm么,那肯定react本身集成了这些,直接用create react app来引用做测试
- 接着发现必须
export { greet } from './greeting.js';
而不是export { greet } from './greeting';
具体不知道原因(我是用babel生成的呀!),但起码现在我的包兼容了两个模块系统了! - 一个简单的办法,修改index.ts就好了,生成的时候就会带
.js