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

作者是否有考虑过更好的支持 TypeScript 和 SSR 的框架? #1035

Open
Dreamer-Paul opened this issue Dec 4, 2024 · 0 comments

Comments

@Dreamer-Paul
Copy link

项目是好项目,功能实现的都挺完整,就是发现 TypeScript 方面的支持不是特别好,在实例化时并没有对可选对象的类型表示清楚,目前只能无脑 @ts-ignore

对于 SSR 框架(例如 React 的 NextJS / RemixJS)也不太友好,直接引入进去会提示 window 不存在,不知道是否在 import 过程有立即执行的代码强依赖了客户端环境,目前只能通过按需加载的方式执行。

打包方面我可以建议尝试下 tsup,之前浅短试用过

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

1 participant