-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bug: Not resolve exports from module entry file #3
Labels
bug
Something isn't working
Comments
没理解什么叫「导致编辑器误以为导出」 |
生成index.mjs/cjs时,esbuild只会导出index.ts中导出的符号。 |
我明白了。 这种情况并不好解决:
不过 issue 仍然可以继续开着,如果之后有比较好的方案确实可以优化一下。 |
可以看看rollup-plugin-dts的实现,但是会很慢 |
确实,我最初写这玩意就是尝试了 rollup-plugin-dts 和其他各种工具都觉得太慢才做的 dtsc。 |
不过可以也提供一个rollup-plugin-dts的dtsc实现,给对dts生成要求比较严格的用户 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当index.ts中无导出时,esbuild将生成空的module文件,而dtsc不会作此区分,从而导致编辑器误以为导出
The text was updated successfully, but these errors were encountered: