From b8c50936a6e4f31d873aad18e24fcea013addc65 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 19 Mar 2022 00:45:17 -0700 Subject: [JS Printer] Fix bug with printing imports for bundled code --- src/js_printer.zig | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src') diff --git a/src/js_printer.zig b/src/js_printer.zig index b45c13c88..fbf20b07b 100644 --- a/src/js_printer.zig +++ b/src/js_printer.zig @@ -3042,17 +3042,6 @@ pub fn NewPrinter( // It unfortunately cannot be so simple as exports.foo = foo; // If we have a lazy re-export and it's read-only... // we have to overwrite it via Object.defineProperty - 1 => { - const item = s.items[0]; - - const identifier = p.renamer.nameForSymbol(item.name.ref.?); - const name = if (!strings.eql(identifier, item.alias)) - item.alias - else - identifier; - p.printBundledExport(name, identifier); - p.printSemicolonAfterStatement(); - }, // Object.assign(__export, {prop1, prop2, prop3}); else => { @@ -3219,7 +3208,7 @@ pub fn NewPrinter( }, .s_export_from => |s| { if (is_inside_bundle) { - + p.printIndent(); // $$lz(export, $React(), {default: "React"}); if (s.items.len == 1) { const item = s.items[0]; -- cgit v1.2.3