Files
bun.sh/src
Dylan Conway d78ecc76c8 Symbol minification (#2695)
* minify

* Update renamer.zig

* --minify-whitespace

* Speed up minification a little

* handle private names

* 5% faster minification

* use helper function

* fix nested scope slots

* `bun build --minify` gets another +8% faster

* print semicolons afterwards

* print semicolon after checking error

* after all error checking

* Delete code for generating legacy bundes

* remove extra whitespace around if statements

* print space before import identifier

* Use `@constCast`

* Make `S.Local#decls` use `BabyList(Decl)`

* Add `fromSlice` helper to `BabyList`

* Remove unnecessary optional chains

* minify `undefined, true, false`

* Another @constCast

* Implement merge adjacent local var

* Support --minify in `bun build --transform`

* skip comments when counting character frequencies

* Don't wrap commonjs with --transform on (unless targeting bun)

* Support --minify in the runtime

* Fix edgecase with import * as

* don't infinite loop

* --trnasform shouldn't mess with require

* Only track comments when minifying

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-20 05:23:12 -07:00
..
2022-12-28 00:51:22 -08:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-07 20:08:01 -07:00
2023-04-19 00:01:27 -07:00
2023-04-20 05:23:12 -07:00
2023-04-20 05:23:12 -07:00
2023-04-20 05:23:12 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-03-02 19:02:10 -08:00
2023-04-19 00:01:27 -07:00
2023-03-02 19:02:10 -08:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-20 05:23:12 -07:00
2023-02-23 23:57:19 -08:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-07 20:08:01 -07:00
2023-04-20 05:23:12 -07:00
2023-04-20 05:23:12 -07:00
2023-04-20 05:23:12 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-20 05:23:12 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-20 05:23:12 -07:00
2023-01-07 19:55:51 -08:00
2023-03-02 19:02:10 -08:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-02-23 23:57:19 -08:00
2023-04-19 00:01:27 -07:00
2023-04-20 05:23:12 -07:00
2023-04-19 00:01:27 -07:00
2023-04-20 05:23:12 -07:00
2023-04-19 00:01:27 -07:00
2023-04-20 05:23:12 -07:00
2023-04-20 05:23:12 -07:00
2023-04-20 05:23:12 -07:00
2023-04-07 20:08:01 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-01-19 20:32:38 -08:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2022-12-28 00:51:22 -08:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-07 20:08:01 -07:00
✂️
2022-12-28 19:28:12 -08:00
2023-04-07 20:08:01 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-20 05:23:12 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2022-12-28 00:51:22 -08:00
2023-04-20 05:23:12 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-03-02 19:02:10 -08:00
2023-04-12 18:40:21 -07:00
2023-04-20 05:23:12 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2022-12-28 00:51:22 -08:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-02-23 23:57:19 -08:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00
2023-04-19 00:01:27 -07:00