Open SoonIter opened 2 weeks ago
In order to be fully aligned with tsc (in fact I plan to refer to oxc for convenience 😅), we need a lot of refactoring. Maybe nearly rewrite everything to determine some errors to be thrown somewhere. Also that means we will never follow the deno's implementation. I'm glad to do but I can't make sure when it will be done since this is time-consuming. What do you think? @kdy1
I think it may create too much maintenance burden. And I can't make the time to maintain isolated dts frequently, so please do what you want. I'll be able to help a bit or review PRs, though.
Summary
deno's implementation is earlier than tsc, so it has its own error format.
But presently, tsc has its standard error format, and users would use it with tsc
isolatedDeclaration: true
intsconfig.json
and wish they both have the same error diagnostic behaviorthere is one case
input
expected behavior
actual behavior
output successfully
Related links
https://github.com/swc-project/swc/issues/9715#issuecomment-2456761751_
https://github.com/web-infra-dev/rspack/pull/8097