aboutsummaryrefslogtreecommitdiff
path: root/src/bundler (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-11woopsGravatar Jarred Sumner 1-2/+2
2023-05-11handle module.exports.foo = class {} in the entry point in the runtimeGravatar Jarred Sumner 1-2/+4
Related to https://github.com/oven-sh/bun/issues/2862, but does not fix it
2023-05-11formattingGravatar Jarred Sumner 1-23/+25
2023-05-11give up on this optimization so we can shipGravatar Jarred Sumner 1-2/+4
2023-05-11Fix `OutputKind`, add "use client" and "use server"Gravatar Jarred Sumner 1-3/+18
2023-05-11bundler tests and improve `Bun.build` return type (#2833)Gravatar dave caruso 1-19/+11
* importstar_ts * tests * run acorn test suite * bench tweaks * test * bun.build tests very incomplete * remove dataurl and base64 loaders from tests since they dont work yet * tests * stuff * stuff * add errors and array of blobs * work so far * docs * requested changes * fix overwrite docs * remove this file
2023-05-10object empty astGravatar Dylan Conway 1-1/+1
2023-05-10Implement `BuildArtifact`Gravatar Jarred Sumner 1-78/+193
2023-05-09RSCGravatar Jarred Sumner 1-0/+1
2023-05-09code splitting optionGravatar Dylan Conway 1-0/+1
2023-05-09fix tracy i thinkGravatar Jarred Sumner 1-0/+4
2023-05-08implement build api `define` and `loaders` (#2805)Gravatar dave caruso 1-0/+1
* parse error logs * clean up types * remove --jsx-production. use NODE_ENV instead * add define to js api * add loaders to js api * fixups * sourcemap * typo fix * remove label, comment dir just for now * test tweaks * test work * make optional enums actually optional. allows `sourcemap: undefined` * overload host ram test * string tests * tests * test for 2815 * requested changes * sort this list * remove this test file now that it passes * oops * add --format * finish ts tests * doc typos related to define and loader
2023-05-08Add some commentsGravatar Jarred Sumner 1-0/+5
2023-05-08Fix bug in Bun.build() where it wouldn't pick up changes to directories on ↵Gravatar Jarred Sumner 1-1/+5
rebuilds (#2824) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-08Don't leak file handlesGravatar Jarred Sumner 1-4/+9
2023-05-08[bundler] Make module resolution single-threadedGravatar Jarred Sumner 1-233/+257
2023-05-07Possibly fix the linux perf issueGravatar Jarred Sumner 1-0/+2
2023-05-07Reduce over-allocationGravatar Jarred Sumner 1-3/+3
2023-05-07Reduce the size of the JS AST to attempt to resolve the linux performance issueGravatar Jarred Sumner 1-66/+79
2023-05-07Add tracy (#2817)Gravatar Jarred Sumner 1-33/+137
* Add tracy * RTLD * Linux needs LD_PRELOAD * More tracing * Inline this --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-06Cleanup some of the log-related codeGravatar Jarred Sumner 1-15/+28
2023-05-06Another .isFile()Gravatar Jarred Sumner 1-1/+1
2023-05-06Clone the logs moreGravatar Jarred Sumner 1-3/+3
2023-05-06Use `isFile()` helperGravatar Jarred Sumner 1-3/+3
2023-05-05Fix bug where the `Bun.file()` returned by `Bun.build()` would have an ↵Gravatar Jarred Sumner 1-1/+8
incorrect path
2023-05-05Cleanup how some of the server components stuff worksGravatar Jarred Sumner 1-113/+160
2023-05-04fix source map line offsets (#2791)Gravatar Dylan Conway 1-31/+50
* find codepoint at `i` * fix allocator usage * missing comment * switch to `Cursor` iterator
2023-05-03Fix code splitting for server componentsGravatar Jarred Sumner 1-175/+407
2023-05-03Clean up edgecase causing plugins to be called too many timesGravatar Jarred Sumner 1-4/+4
2023-05-03re-enable our CJS optimizationGravatar Jarred Sumner 1-4/+3
2023-05-03Implement synthetic default exportGravatar Jarred Sumner 1-117/+203
2023-05-02add deoptimizationGravatar Jarred Sumner 1-1/+1
2023-05-02`entry_point_kinds` only at `source_index`Gravatar Dylan Conway 1-11/+9
2023-05-02Small refactorGravatar Jarred Sumner 1-22/+21
2023-05-02Visit the runtimeGravatar Jarred Sumner 1-0/+4
2023-05-02Add helper fnGravatar Jarred Sumner 1-4/+1
2023-05-02Fix checking for dynamic exports (#2792)Gravatar Dylan Conway 1-4/+5
* only look at import records for the current source index * skip `source_index` when it is invalid * iterate `export_star_records` at `source_index` * comment
2023-05-02fix spacingGravatar Jarred Sumner 1-8/+8
2023-05-01Fix a couple spltiting bugsGravatar Jarred Sumner 1-22/+54
2023-05-01Fixes #2783Gravatar Jarred Sumner 1-2/+3
2023-05-01Update bundle_v2.zigGravatar Jarred Sumner 1-1/+1
2023-05-01Fix some splitting bugsGravatar Jarred Sumner 1-14/+14
2023-05-01Fix another crashGravatar Jarred Sumner 1-2/+2
2023-04-30Fix garbled line text in some errorsGravatar Jarred Sumner 1-0/+2
2023-04-30Fix missing imports in DCE testsGravatar Jarred Sumner 1-5/+5
2023-04-30Implement source maps (#2770)Gravatar Dylan Conway 1-117/+774
* 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-04-29Fix garbled text in errorsGravatar Jarred Sumner 1-2/+2
2023-04-29Fix plugin namespaces always being set to `"flie"`Gravatar Jarred Sumner 1-1/+1
2023-04-28bundler tests: rest of default.test.ts and starting jsx tests (#2765)Gravatar dave caruso 1-36/+36
2023-04-28fix several memory issues related to pluginsGravatar Jarred Sumner 1-21/+22