Support banner
in Bun.build
#14330
Labels
enhancement
New feature or request
good first issue
Something that would be good for new contributors
What is the problem this feature would solve?
I need functionality that allows me to prepend text to a bundled file.
This text is often called a
banner
, theminify
option should ignore this text as it may contain comments.In my case, a
banner
is metablock that is required by userscript.Current workaround
TODO
comment:bun/src/bundler/bundle_v2.zig
Line 7743 in 39b1c01
Similar issue: #6119
Originated from discord help channel
What is the feature you are proposing to solve the problem?
New argument for
Bun.build
namedbanner
orpreamble
(ref terser).Passed text should be ignored by
minify
parameter and affect onlyentrypoints
.What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: