aboutsummaryrefslogtreecommitdiff
path: root/src/bundler.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-05-27 18:50:20 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-05-27 18:50:20 -0700
commitdb5a78d5f6ee9a8bdaa7fb945005a6d8445fe2cc (patch)
tree1882929a8c5df8476bac72b95dd249b68239cee7 /src/bundler.zig
parentb5173afc44acf4fdd0cade42ce011da7a55539d5 (diff)
downloadbun-db5a78d5f6ee9a8bdaa7fb945005a6d8445fe2cc.tar.gz
bun-db5a78d5f6ee9a8bdaa7fb945005a6d8445fe2cc.tar.zst
bun-db5a78d5f6ee9a8bdaa7fb945005a6d8445fe2cc.zip
stmt experiment
Former-commit-id: b6e7f01e6ae61bd47b23b918d86d511c390e3510
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,