-
-
Notifications
You must be signed in to change notification settings - Fork 595
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]: provide better comment annotation #7591
Comments
@alexander-akait is this option acceptable for webpack or any better suggestions for this problem? also cc @fi3ework |
The original module path (./src/answer.js) is useful for debugging, maybe we can replace |
We can consider adding an |
comments content shouldn't be public api, so change comment content seems not a breaking change |
Yes, if Rspack doesn't strive for consistency with webpack's outputs and comments, then changing the comments content directly is a better idea. |
I am fine to improve comment, maybe we can do it without any new options for output, it is just a debug infromation, so we can just impove it |
How do you want to see them? |
to me, the esbuild's comment is the simplest and clean
the module path is already contains enough info for debugging and seems no need to keep the |
So you just want to remove |
Yes, that will sufficient. And it will be nicer to adding the leading |
@fi3ework @hardfist Feel free to send a Pull requests
I think we already insert it only when needed, if not, consider it as a bug fix |
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, already landed in webpack. |
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! |
What problem does this feature solve?
currently rspack | webpack will generate the following result for
modern-module
, the comment is not nicely(Concate module
seems hard to understand for normal users) to read, even minifier can remove these comments, but normally library code shouldn't be minified for better debug experienceWhat does the proposed API of configuration look like?
there're some solutions, i'm not sure which is better
The text was updated successfully, but these errors were encountered: