diff options
author | 2022-03-19 00:45:17 -0700 | |
---|---|---|
committer | 2022-03-19 00:45:17 -0700 | |
commit | b8c50936a6e4f31d873aad18e24fcea013addc65 (patch) | |
tree | 61ac93001e9fca6c58176d400fcc4419c0a9f243 | |
parent | c1e8f3b593a2aa61a46e0aeb786c910fa1f2c494 (diff) | |
download | bun-b8c50936a6e4f31d873aad18e24fcea013addc65.tar.gz bun-b8c50936a6e4f31d873aad18e24fcea013addc65.tar.zst bun-b8c50936a6e4f31d873aad18e24fcea013addc65.zip |
[JS Printer] Fix bug with printing imports for bundled code
-rw-r--r-- | src/js_printer.zig | 13 |
1 files changed, 1 insertions, 12 deletions
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]; |