Implement --drop (#14492)

Co-authored-by: dave caruso <me@paperdave.net>
This commit is contained in:
Jarred Sumner
2024-10-11 20:52:23 -07:00
committed by GitHub
parent bbb41beadc
commit c77fc5daa0
26 changed files with 366 additions and 147 deletions

View File

@@ -99,6 +99,7 @@ pub const BuildCommand = struct {
this_bundler.options.banner = ctx.bundler_options.banner;
this_bundler.options.footer = ctx.bundler_options.footer;
this_bundler.options.drop = ctx.args.drop;
this_bundler.options.experimental_css = ctx.bundler_options.experimental_css;
@@ -236,10 +237,11 @@ pub const BuildCommand = struct {
allocator,
user_defines.keys,
user_defines.values,
), log, allocator)
), ctx.args.drop, log, allocator)
else
null,
null,
this_bundler.options.define.drop_debugger,
);
try bun.bake.addImportMetaDefines(allocator, this_bundler.options.define, .development, .server);