mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 04:18:58 +00:00
--no-macros flag, disable macros in node_modules
This commit is contained in:
@@ -207,8 +207,14 @@ pub const BuildCommand = struct {
|
||||
this_bundler.options.jsx.development = !this_bundler.options.production;
|
||||
this_bundler.resolver.opts.jsx.development = this_bundler.options.jsx.development;
|
||||
|
||||
if (ctx.debug.macros) |macros| {
|
||||
this_bundler.options.macro_remap = macros;
|
||||
switch (ctx.debug.macros) {
|
||||
.disable => {
|
||||
this_bundler.options.no_macros = true;
|
||||
},
|
||||
.map => |macros| {
|
||||
this_bundler.options.macro_remap = macros;
|
||||
},
|
||||
.unspecified => {},
|
||||
}
|
||||
|
||||
// var env_loader = this_bundler.env;
|
||||
|
||||
Reference in New Issue
Block a user