diff options
author | 2021-05-27 18:50:20 -0700 | |
---|---|---|
committer | 2021-05-27 18:50:20 -0700 | |
commit | db5a78d5f6ee9a8bdaa7fb945005a6d8445fe2cc (patch) | |
tree | 1882929a8c5df8476bac72b95dd249b68239cee7 /src/bundler.zig | |
parent | b5173afc44acf4fdd0cade42ce011da7a55539d5 (diff) | |
download | bun-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.zig | 5 |
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, |