diff options
Diffstat (limited to 'src/bundler.zig')
-rw-r--r-- | src/bundler.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bundler.zig b/src/bundler.zig index 336723da3..f540436b0 100644 --- a/src/bundler.zig +++ b/src/bundler.zig @@ -1324,6 +1324,7 @@ pub const Bundler = struct { virtual_source: ?*const logger.Source = null, replace_exports: runtime.Runtime.Features.ReplaceableExport.Map = .{}, hoist_bun_plugin: bool = false, + inject_jest_globals: bool = false, }; pub fn parse( @@ -1453,6 +1454,7 @@ pub const Bundler = struct { opts.features.jsx_optimization_hoist = bundler.options.jsx_optimization_hoist orelse opts.features.jsx_optimization_inline; opts.features.hoist_bun_plugin = this_parse.hoist_bun_plugin; + opts.features.inject_jest_globals = this_parse.inject_jest_globals; if (bundler.macro_context == null) { bundler.macro_context = js_ast.Macro.MacroContext.init(bundler); } |