aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-04-28New test runner with better Github integrationGravatar Ashcon Partovi 2-20/+634
2023-04-28Bundler docs updates + support for `naming` string (#2767)Gravatar Colin McDonnell 5-252/+394
* Bundler docs updates * Remove comments * Updates * Fix bunx usages * Add info about metafile
2023-04-27address unicode issue (#2763)Gravatar Jarred Sumner 3-19/+17
* Fix an oopsie * Another oopsie * use inline for * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-27:nail_care:Gravatar Jarred Sumner 2-15/+4
2023-04-27fix: make node:crypto Hash.copy work correctly (#2761)Gravatar Silver 12-8941/+7815
This commit will also: - add a CryptoHasher.copy function - make CryptoHasher.digest reset the hasher so it can be reused Resolves #2651
2023-04-27Add TODO noteGravatar Jarred Sumner 1-0/+2
2023-04-27Fix mimalloc-debugGravatar Jarred Sumner 1-3/+3
2023-04-27Remove extra word in docs/index.md (#2758)Gravatar B. Burt 1-1/+1
2023-04-27Implement `outdir` in `Bun.build`Gravatar Jarred Sumner 8-26/+362
2023-04-27Don't preallocate unless its profitableGravatar Jarred Sumner 5-40/+45
2023-04-27Add microbenchmarkGravatar Jarred Sumner 1-0/+42
2023-04-27very slightly faster open() and writeFileSync() (#2759)Gravatar Jarred Sumner 4-45/+185
* Make open() slightly faster on macOS * Support using `writeFileSync` from native code * Add `openat$NOCANCEL` symbol * fixups for linux * do benchmark --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-26more esbuild compatGravatar Jarred Sumner 1-7/+8
2023-04-26Wrap some things in minify_syntax flagGravatar Jarred Sumner 1-31/+34
2023-04-26Inline spreads of array literalsGravatar Jarred Sumner 2-0/+52
2023-04-26bundler tests! (#2741)Gravatar dave caruso 7-386/+548
* bundler tests! * tests
2023-04-26Use Ninja to build mimalloc and gitignore test/bun.lockb (#2750)Gravatar Silver 2-2/+5
* build: use ninja to build mimalloc This is both faster than make, and ensures the same generator is always used, even when CMAKE_GENERATOR exists in the environment. * chore: gitignore test/bun.lockb
2023-04-26ensure `super()` is not merged with adjacent statements (#2757)Gravatar Dylan Conway 2-5/+18
* ensure `super()` is not merged with adjacent statements * add TODO
2023-04-26Fixes #2746 (#2748)Gravatar Jarred Sumner 3-2/+20
* Fixes #2746 * add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-26fix (#2756)Gravatar dave caruso 1-1/+1
2023-04-26docs hotfix (#2755)Gravatar dave caruso 1-2/+2
2023-04-26Add bundler documentation (#2753)Gravatar Colin McDonnell 6-13/+1233
* WIP * WIP * WIP * Document API * Updates * Polish bundler docs * Tweaks * Tweak
2023-04-26Basic types for Bun.build (#2713)Gravatar Colin McDonnell 1-5/+46
* Basic types for Bun.build * Tweaks * Updates
2023-04-26Implement `file` loader in `Bun.build` (#2745)Gravatar Jarred Sumner 5-41/+319
* Update bundle_v2.zig * Implement `file` loader * Hash in parallel * Implement `publicPath` * simplify * Update bundle_v2.zig * Implement `#!` * Remove unnecessary optional --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-25Update outdated helpGravatar Jarred Sumner 1-1/+1
2023-04-25Fix assertion failureGravatar Jarred Sumner 1-1/+1
reproduces if building Three.js 10 times in runtime
2023-04-25Avoid unnecessary copiesGravatar Jarred Sumner 1-2/+14
2023-04-25Fix error with --jsx-production in runtimeGravatar Jarred Sumner 2-24/+2
2023-04-25bundler tests, testing plugins (#2740)Gravatar dave caruso 18-613/+1117
* add cjs2esm stuff * tests * plugin testing
2023-04-25now it worksGravatar Jarred Sumner 3-17/+15
2023-04-25typoGravatar Jarred Sumner 2-3/+7
2023-04-25Implement `onResolve` plugins in `Bun.build()`, support multiple onLoad and ↵Gravatar Jarred Sumner 70-863/+2068
onResolve plugins (#2739) * its 2023 * WIP `onResolve` plugins * more progress * it compiles * Lots of small fixes * Seems to work excluding entry points * Update BundlerPluginBuiltins.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-25Fixes #2738Gravatar Jarred Sumner 2-2/+9
2023-04-25fix `make setup` (#2731)Gravatar Alex Lam S.L 4-5/+7
- minor clean-ups
2023-04-25Log HTTP requests and responses by default when log level is debug or verboseGravatar Jarred Sumner 1-2/+4
2023-04-24[install] fix `bun add` on non-aliased dependency (#2728)Gravatar Alex Lam S.L 2-5/+82
2023-04-24In `bun run`, rewrite usages of `npx` to `bun x` instead of `bunx` to ↵Gravatar Jarred Sumner 1-1/+1
workaround missing symlink
2023-04-24Continue bundler tests (#2691)Gravatar dave caruso 11-659/+1717
* start refine + skipping some packagejson tests * some more tests * stuff * tests for minify branch * pkgjson * add minify/MergeAdjacentVars * add test for #2699 * more tests! * more tests * finish splitting tests * all but 2 import star tests are good * test
2023-04-24Support plugins in `Bun.build` (#2720)Gravatar Jarred Sumner 13-106/+1372
* wip * Implement `onLoad` plugins * Support exceptions and async `onLoad` plugins * Fix filtering * Handle empty files * Fix JSON loader --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-24Reduce friction for building with npm (#2723)Gravatar Plecra 2-2/+2
This was the only dependency on bun that I encountered while building the project, and the change to the gitignore ensures that it's easy to make changes after an npm based build
2023-04-22Make `Bun.build` more reliable (#2718)Gravatar Jarred Sumner 24-424/+761
* One possible implementation to make `Bun.build` work better * Pass allocator in * Make our temporary buffers a little safer * rename * Fix memory corruption in symbol table * Add support for deferred idle events in ThreadPool * Free more memory * Use a global allocator FS cache * more `inline` * Make duping keys optional in StringMap * Close file handles more often * Update router.zig * wip possibly delete this commit * Fix memory issues and reduce memory usage * > 0.8 * Switch to AsyncIO.Waker and fix memory leak in JSBundleCompletionTask * We don't need to clone this actually * Fix error * Format * Fixup * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-21Fix `minify: true` not applying to identifiersGravatar Jarred Sumner 1-1/+1
2023-04-21[breaking] In Bun.Transpiler, don't wrap CommonJS modules in `export default`Gravatar Jarred Sumner 1-0/+2
2023-04-21Add `minify` option to Bun.TranspilerGravatar Jarred Sumner 1-0/+30
2023-04-21Update TS docs for bun-types changes (#2590)Gravatar Colin McDonnell 1-20/+54
* Update TS docs for bun-types changes * Update typescript, remove extends guidance * Updates * Tweaks * Tweaks
2023-04-21Add `tsconfig.json` to `bun-types` (#2587)Gravatar Colin McDonnell 4-20/+63
* Add tsconfig.json to bun-types. Document 'extends' pattern. * Updates * Update bun init to use extends:bun-types * Update type:module recommendation * Add note about transpilation. Closes #2553 * Make typescript a peer dep * Revert changes to docs * Revert tsconfig extends * Update readme * FMC * Undo changed
2023-04-21Keep the node crypt otestGravatar Jarred Sumner 2-8/+69
2023-04-21Revert "use a lazyily initialized stream for `node:crypto` `createHash` (#2652)"Gravatar Jarred Sumner 12-265/+14032
This reverts commit 3a2fd65f20d3b4e99c89f789acec5e5e40615008.
2023-04-21Revert "implement `node:events` in javascript (#2604)"Gravatar Jarred Sumner 15-1161/+210
This reverts commit 96a2ed1040d5a0ca51ae41267cba4f8e5d0a6142.
2023-04-21Fix orderGravatar Jarred Sumner 1-1/+3