aboutsummaryrefslogtreecommitdiff
path: root/src/bundler.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bundler.zig')
-rw-r--r--src/bundler.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bundler.zig b/src/bundler.zig
index 4e68964df..dcb5a25c5 100644
--- a/src/bundler.zig
+++ b/src/bundler.zig
@@ -247,7 +247,10 @@ pub const Bundler = struct {
const output_file = try bundler.print(
result,
);
+
js_ast.Stmt.Data.Store.reset();
+ js_ast.Expr.Data.Store.reset();
+
return output_file;
}
@@ -286,6 +289,7 @@ pub const Bundler = struct {
js_printer.Options{ .to_module_ref = Ref.RuntimeRef },
&_linker,
);
+ // allocator.free(result.source.contents);
return options.OutputFile{
.path = out_path,