-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
♻️ refactor build with tsup #46
Conversation
YunYouJun
commented
Dec 7, 2021
- refactor with tsup
- export * from mirai-api-http
@CaoMeiYouRen 我尝试了下 tsup,发现配置确实简单许多,构建速度也相对较快,以及将各种类型从 mirai-api-http 中导出了。 |
This pull request fixes 1 alert when merging 74a1d9b into d4c46da - view on LGTM.com fixed alerts:
|
This pull request fixes 1 alert when merging eb85e60 into d4c46da - view on LGTM.com fixed alerts:
|
倒也可以,我看了下改动比我的那个还要大,但也实现了设计目的,我觉得ok |
|
应该是 |
使用 tsup 目的是减少项目中的打包配置(这也是我之前偷懒只用 关于代码大小上,目前导出算上 ESM + CJS + DTS,总和在 115KB,已经比之前小了不少。(可能有遗漏的东西,还没排查到,之后有问题再修。) |
|
This pull request fixes 1 alert when merging 448ba6a into d4c46da - view on LGTM.com fixed alerts:
|
关于 tsconfig.json 已修改为 ES2016。 |
我目前将 v2.2.0 发布在了 next tag 下,可以通过 |