aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-01include `first_name_offset` in source map bufferdylan/source-map-names-propertyGravatar Dylan Conway 4-61/+145
2023-04-30Bun Test matchers even/odd. Also, .toContains fix and truthy (#2754)Gravatar Will Richards 2 7-3/+203
* bun test matcher tests for even/odd, few more truthy tests, and fix for contains empty string * implementation of even/odd matchers * didn't add the codegen bindings * linted
2023-04-30FIx esm -> cjs require interop with converted CJSGravatar Jarred Sumner 1-1/+1
TODO: make `default` namespace object for these not load the entire wrapper
2023-04-30Fix garbled line text in some errorsGravatar Jarred Sumner 2-6/+23
2023-04-30Update options.zigGravatar Jarred Sumner 1-3/+3
2023-04-30Fix missing imports in DCE testsGravatar Jarred Sumner 1-5/+5
2023-04-30Fix missing "default" export conditionGravatar Jarred Sumner 1-0/+2
2023-04-30Implement source maps (#2770)Gravatar Dylan Conway 14-210/+1100
* wip * Begin computing source map tables * source map progress * external source maps * fix merge * remove `@as` coercion * inline source maps and output source map shifts * fix `codeWithSourceMapShifts()` after merge * remove second call to `findReachableFiles()` * use `worker.allocator`, remove comment * don't reuse memory for source and sourceContents * don't reuse `quote_buf` * fix writing to stdout * Add comment * Don't include a sourcemap if the text was empty * Make the parser faster * +16% faster sourcemap generation @dylan-conway I'll need you to look this over to make sure I didn't mess anything up Though it currently doesn't generate the offsets in the right order... * 30% performance improvement to Bun.build() * Print `debugId` in source maps cc @mitsuhiko @notzeeg --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-01[install] handle `devDependencies` of local folders (#2781)Gravatar Alex Lam S.L 3-65/+27
fixes #2653
2023-04-30prevent crashGravatar Jarred Sumner 1-2/+2
2023-04-30[install] handle repeated install of GitHub dependency correctly (#2780)Gravatar Alex Lam S.L 1-3/+18
fixes #2602
2023-04-30add to symbols.txtGravatar Jarred Sumner 2-96/+32
2023-04-29Fix a load order issueGravatar Jarred Sumner 2-7/+55
2023-04-29Fix some runtime issues caused by bundlerGravatar Jarred Sumner 1-4/+9
2023-04-29Fix garbled text in errorsGravatar Jarred Sumner 1-2/+2
2023-04-29Fix plugin namespaces always being set to `"flie"`Gravatar Jarred Sumner 3-4/+5
2023-04-29[Transpiler] Fix crash in scanImports when the text is emptyGravatar Jarred Sumner 1-0/+4
2023-04-29Fix debug mode crash with trailing slash in import specifierGravatar Jarred Sumner 1-0/+4
2023-04-29Update bun.zigGravatar Jarred Sumner 1-0/+2
2023-04-29Clean up args parsing with `--loader`Gravatar Jarred Sumner 5-52/+66
2023-04-29Export 4 missing napi symbols on macOSGravatar Jarred Sumner 2-82/+86
2023-04-28bundler tests: rest of default.test.ts and starting jsx tests (#2765)Gravatar dave caruso 23-275/+315
2023-04-28fix several memory issues related to pluginsGravatar Jarred Sumner 2-23/+27
2023-04-28cargo cult some code from JSCGravatar Jarred Sumner 2-6/+7
2023-04-28Fix race conditionGravatar Jarred Sumner 1-2/+47
2023-04-28Add a commentGravatar Jarred Sumner 1-19/+54
2023-04-28[resolver] Propagate module type from package.json `"exports"` when possibleGravatar Jarred Sumner 2-5/+33
2023-04-28Fix crash with invalid input in fetch()Gravatar Jarred Sumner 1-2/+14
2023-04-28Improves Body.Value life cycle and Signal life cycle on server.zig (#2752)Gravatar Ciro Spaciari 9-219/+288
* reestruct request body value and signal * revert react-hello-world * fix constructInto and test * fmt * fix body nullable * Request can outlive RequestContext * fmt * BodyValue is now HiveRef * hasDecl for Ref and HiveRef * fix deinit call on Ref/HiveRef * adds InlineBlob * fix Bun.inspect when using InlineBlob * revert InlineBlob * Fix mimalloc-debug * Add TODO note * fix: make node:crypto Hash.copy work correctly (#2761) This commit will also: - add a CryptoHasher.copy function - make CryptoHasher.digest reset the hasher so it can be reused Resolves #2651 * :nail_care: * address unicode issue (#2763) * Fix an oopsie * Another oopsie * use inline for * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> * Request can outlive RequestContext * fmt * garantee to have the abort signnal attached to the server before abort the client on bun-server test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Silver <14016168+silversquirl@users.noreply.github.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-04-28Use global allocator tsconfig.jsonGravatar Jarred Sumner 1-3/+6
2023-04-28Bundler docs updates + support for `naming` string (#2767)Gravatar Colin McDonnell 2-16/+27
* 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-27fix: make node:crypto Hash.copy work correctly (#2761)Gravatar Silver 9-8940/+7711
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-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-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-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 2-2/+8
* Fixes #2746 * add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
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-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>