diff options
Diffstat (limited to 'src/bundler/bundle_v2.zig')
-rw-r--r-- | src/bundler/bundle_v2.zig | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index 76cc18877..5784eeaa9 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -391,6 +391,8 @@ pub const BundleV2 = struct { bundler.options.mark_bun_builtins_as_external = bundler.options.platform.isBun(); bundler.resolver.opts.mark_bun_builtins_as_external = bundler.options.platform.isBun(); + var this = generator; + defer allocator.destroy(generator); generator.* = BundleV2{ .bundler = bundler, @@ -429,18 +431,6 @@ pub const BundleV2 = struct { var batch = ThreadPoolLib.Batch{}; - var this = generator; - - if (this.bundler.env.isProduction()) { - this.bundler.options.jsx.development = false; - } - - if (!this.bundler.options.jsx.development) { - this.bundler.options.jsx.import_source = std.fmt.allocPrint(allocator, "{s}/jsx-runtime", .{generator.bundler.options.jsx.classic_import_source}) catch unreachable; - } - - this.bundler.resolver.opts.jsx = this.bundler.options.jsx; - try pool.start(this); { |