esbuild icon indicating copy to clipboard operation
esbuild copied to clipboard

Option to disable injected comment of input path file

Open tinchox5 opened this issue 10 months ago • 2 comments

-Describe what esbuild is doing incorrectly and what it should be doing instead. When bundling, esbuild inject a comment with the input path file in out file. (ex. // node_modules/@example/union-find/index.js)

I was wondering if an option could be added to disable this . Thank you!

-Example to reproduce the issue.

tinchox5 avatar Apr 04 '24 18:04 tinchox5

Why do you need this feature?

evanw avatar Apr 04 '24 22:04 evanw

Because I don’t want to show the input source file in all my bundles. I mean in general the current behaviour is useful, but in other cases an option to disable it may be useful as well. That's all, thank you for creating such amazing tool

On Fri, 5 Apr 2024 at 01:46 Evan Wallace @.***> wrote:

Why do you need this feature?

— Reply to this email directly, view it on GitHub https://github.com/evanw/esbuild/issues/3717#issuecomment-2038398080, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYFYDNYAF4HWIIRTGI2NALY3XJ4BAVCNFSM6AAAAABFXX6ORSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZYGM4TQMBYGA . You are receiving this because you authored the thread.Message ID: @.***>

tinchox5 avatar Apr 05 '24 04:04 tinchox5