aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-04-21Fix orderGravatar Jarred Sumner 1-1/+3
2023-04-21`Bun.build()` partial implementationGravatar Jarred Sumner 6-19/+427
2023-04-21slightly better minifiedGravatar Jarred Sumner 1-1/+1
2023-04-21Add commentGravatar Jarred Sumner 1-0/+2
2023-04-20Fix bug with merging adjacent varsGravatar Jarred Sumner 3-2/+9
2023-04-20chore(docs): add xcode runtime install to docs (#2706)Gravatar Emmanuel Vazquez 1-0/+8
2023-04-20Fix whitespace edgecase with export * fromGravatar Jarred Sumner 1-3/+13
2023-04-20append if the previous part is not UTF8 (#2705)Gravatar Dylan Conway 2-7/+10
2023-04-20Fix template string folding testGravatar Jarred Sumner 1-16/+17
@paperdave --minify-syntax now causes `true` to print as `!0` and `false` to print as `!1` `undefined` is now `void 0`
2023-04-20Increase timeouts :(Gravatar Jarred Sumner 2-2/+2
2023-04-20Update runner.node.mjsGravatar Jarred Sumner 1-15/+20
2023-04-20Improve error message when failing to read a fileGravatar Jarred Sumner 3-2/+84
2023-04-20Fix bug with invalid character at the end of comment pathGravatar Jarred Sumner 1-1/+1
2023-04-20Symbol minification (#2695)Gravatar Dylan Conway 19-2329/+1250
* 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`with` body can be an expressionGravatar Dylan Conway 1-2/+2
2023-04-19Fix typo in benchmarking docs (#2702)Gravatar flakey5 1-1/+1
2023-04-19Fix broken autocompleteGravatar Jarred Sumner 177-3784/+2971
2023-04-19fix `make setup` (#2693)Gravatar Alex Lam S.L 2-12/+19
- properly reset `JSC_BASE_DIR` after installing `bun-webkit`
2023-04-18implement `node:events` in javascript (#2604)Gravatar dave caruso 15-210/+1161
* initial event emitter reimplementation * implement most of node:events. tests passing * work on emitter * fix importing node:events * work on event emitter tests * event work * event work * event stuff and experimenting with a lazy createHash * cleanup crypto stuff i had on this branch * finish event stuff up * fix error monitor * validate listeners are functions * changes requested
2023-04-18clarify file io docs (#2689)Gravatar dave caruso 1-1/+5
2023-04-18use properties length instead of capacity (#2687)Gravatar Dylan Conway 1-1/+1
2023-04-18Prepare for JavaScript Bundler APIGravatar Jarred Sumner 2-42/+67
2023-04-18Fix the extremely annoying `./` requirement in bun buildGravatar Jarred Sumner 1-11/+3
2023-04-17Remove spin loop in `bun build`Gravatar Jarred Sumner 2-15/+16
2023-04-17Fixes #2676Gravatar Jarred Sumner 2-2/+24
2023-04-17Make `bun dev` CLI flags only show in --help for `bun dev --help`Gravatar Jarred Sumner 1-78/+78
This impacts: --disable-bun.js --disable-react-fast-refresh --bunfile <STR> --server-bunfile <STR> --public-dir <STR> --disable-hmr --use <STR>
2023-04-17Fix template string folding bugGravatar Jarred Sumner 1-3/+3
2023-04-17Fix missing should_fold_typescript_constant_expressionsGravatar Jarred Sumner 1-0/+1
2023-04-17Fix DCE bug with `new Foo()` when pure without argumentsGravatar Jarred Sumner 1-1/+9
2023-04-17make sure `with` is parsed as a block (#2680)Gravatar Dylan Conway 2-6/+1
2023-04-17fix typescript decorators with index and number keys (#2677)Gravatar Dylan Conway 2-2/+34
* handle index property key case * non-method number property * tests for property keys
2023-04-17docs: fix code block (#2662)Gravatar Simon Legner 1-1/+1
2023-04-17moreGravatar Jarred Sumner 1-0/+60
2023-04-17Get axios working (#2673)Gravatar Jarred Sumner 4-651/+709
* Revive node:http tests * Fix a couple bugs in node:http * possibly breaking: use `"browser"` exports condition last * Make URL validation error better --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-17cleanupGravatar Jarred Sumner 1-4/+7
2023-04-17Fix access of inactive union fieldGravatar Jarred Sumner 1-3/+4
2023-04-17Fixup options parsingGravatar Jarred Sumner 1-22/+48
2023-04-17enable minify syntax by default in the runtimeGravatar Jarred Sumner 2-2/+3
2023-04-17Prepare for `Bun.build`Gravatar Jarred Sumner 10-10609/+12146
2023-04-17Fix dynamic require()Gravatar Jarred Sumner 1-0/+15
2023-04-17Fixes #2634Gravatar Jarred Sumner 1-2/+2
2023-04-17Don't record named exports for deoptimized CJSGravatar Jarred Sumner 1-6/+10
2023-04-17Deoptimize CJS moreGravatar Jarred Sumner 1-8/+6
2023-04-17Update bun.zigGravatar Jarred Sumner 1-1/+1
2023-04-17`bun build` should write to stdout instead of stderrGravatar Jarred Sumner 1-1/+1
@paperdave this probably breaks all your tests
2023-04-17DCE for some global constructor callsGravatar Jarred Sumner 1-6/+10
2023-04-17Deoptimize CJS -> ESM transform on computed property access of `exports` objectGravatar Jarred Sumner 1-1/+10
Example: ```js for (var k in constants) { exports[k] = constants[k]; } ```
2023-04-16Update bundle_v2.zigGravatar Jarred Sumner 1-24/+10
2023-04-16Mark builtins as external for node and bunGravatar Jarred Sumner 3-4/+8
2023-04-16Attempt to automatically handle some cyclical import issues with ESMGravatar Jarred Sumner 2-0/+35
Fixes https://github.com/kysely-org/kysely/issues/412