-
-
Notifications
You must be signed in to change notification settings - Fork 543
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
[Feature]: Support diagnostics reporting API like esbuild.formatMessages
or swc HANDLER
#5913
Comments
esbuild.formatMessages
or swc HANDLER
esbuild.formatMessages
or swc HANDLER
cc @h-a-n-a |
Thanks for reaching out! Currently, we do have some APIs for internal error reportings. However, we haven't expose these as stable API instead its an internal API. We've put this into consideration ;-) More followups will be provided as soon as Rspack 1.0 is released. |
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
bump |
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
bump |
What problem does this feature solve?
We are using
esbuild
as our bundler and we are trying to migrate torspack
.esbuild
has a great APIesbuild.formatMessages
that we use to print the compilation warnings and errors. It makes all the printed diagnostics(directly byesbuild
or by our plugins) look the same.We also made some
esbuild
transform plugins withswc
. And we use theHANDLER
API ofswc
a lot to print diagnostics(with a customEmitter
to printesbuild
compatible messages).It would be nice if
rspack
could provide such an API so that all the ecosystems(oxc
,rsbuild
and third-party plugins) can make diagnostics in the same format.What does the proposed API of configuration look like?
Rust
The
swc
has a great API:Maybe
rspack
could provide rust API like this(in a standalone crate so than it can be used by our rust transformers).JS
It would be nice if it has the same API as
esbuild
.It also LGTM if
rspack
uses a different data structure that is more rust-style :)The text was updated successfully, but these errors were encountered: