diff options
| author | 2022-12-15 21:40:56 -0800 | |
|---|---|---|
| committer | 2022-12-15 21:40:56 -0800 | |
| commit | 0df3485132407c07e17c841246ec13c924b4c07c (patch) | |
| tree | 14ffba69e7c948fd3c844d2479f8ba2f1c757512 | |
| parent | 3ea983578f4f9ec0544697852e617ddcdb585783 (diff) | |
| download | bun-0df3485132407c07e17c841246ec13c924b4c07c.tar.gz bun-0df3485132407c07e17c841246ec13c924b4c07c.tar.zst bun-0df3485132407c07e17c841246ec13c924b4c07c.zip | |
[js printer] Fix missing space when printing import aliases with whitespace minification enabled
| -rw-r--r-- | src/js_printer.zig | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/src/js_printer.zig b/src/js_printer.zig index 4d35e170d..062221ac6 100644 --- a/src/js_printer.zig +++ b/src/js_printer.zig @@ -1556,8 +1556,7 @@ pub fn NewPrinter(                  p.printClauseAlias(item.alias);                  if (!strings.eql(name, item.alias)) { -                    p.print(" as"); -                    p.printSpace(); +                    p.print(" as ");                      p.addSourceMapping(item.alias_loc);                      p.printIdentifier(name);                  } @@ -1574,8 +1573,7 @@ pub fn NewPrinter(                  p.printIdentifier(name);                  if (!strings.eql(name, item.alias)) { -                    p.print(" as"); -                    p.printSpace(); +                    p.print(" as ");                      p.addSourceMapping(item.alias_loc);                      p.printClauseAlias(item.alias);                  } | 
