aboutsummaryrefslogtreecommitdiff
path: root/src/bundler.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bundler.zig')
-rw-r--r--src/bundler.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bundler.zig b/src/bundler.zig
index 96ec6027c..4e68964df 100644
--- a/src/bundler.zig
+++ b/src/bundler.zig
@@ -244,9 +244,11 @@ pub const Bundler = struct {
else => {},
}
- return try bundler.print(
+ const output_file = try bundler.print(
result,
);
+ js_ast.Stmt.Data.Store.reset();
+ return output_file;
}
pub fn print(
@@ -284,6 +286,7 @@ pub const Bundler = struct {
js_printer.Options{ .to_module_ref = Ref.RuntimeRef },
&_linker,
);
+
return options.OutputFile{
.path = out_path,
.contents = print_result.js,