aboutsummaryrefslogtreecommitdiff
path: root/src/runtime (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-11bundler tests and improve `Bun.build` return type (#2833)Gravatar dave caruso 1-8/+8
* 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-03-02Add a zig fmt action (#2277)Gravatar Jarred Sumner 3-283/+78
* Add a zig fmt action * add failing file * Setup prettier better * Update prettier-fmt.yml * Fail on error * Update prettier-fmt.yml * boop * boop2 * tar.gz * Update zig-fmt.yml * Update zig-fmt.yml * Update zig-fmt.yml * Update zig-fmt.yml * Update zig-fmt.yml * boop * Update prettier-fmt.yml * tag * newlines * multiline * fixup * Update zig-fmt.yml * update it * fixup * both * w * Update prettier-fmt.yml * prettier all the things * Update package.json * zig fmt * ❌ ✅ * bump * . * quotes * fix prettier ignore * once more * Update prettier-fmt.yml * Update fallback.ts * consistentcy --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-09Add bun-types, add typechecking, add `child_process` types (#1475)Gravatar Colin McDonnell 6-56/+62
* Add bun-types to packages * Improve typing * Fix types in tests * Fix dts tests * Run formatter * Fix all type errors * Add strict mode, fix type errors * Add ffi changes * Move workflows to root * Add workflows * Remove labeler * Add child_process types * Fix synthetic defaults issue * Remove docs * Move scripts * Run prettier * Include examples in typechecking * captureStackTrace types * moved captureStackTrace types to globals * Address reviews Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-22/+33
2022-04-13[bun dev] Fix CSS HMR bugGravatar Jarred Sumner 1-15/+14
2022-04-08Fix Next.js stylesheet bugGravatar Jarred Sumner 1-3/+7
2022-04-08I think fix hmr regression?Gravatar Jarred Sumner 1-1/+1
2022-04-067 hrsGravatar Jarred Sumner 1-6/+1
2022-04-06Update hmr.tsGravatar Jarred Sumner 1-1/+0
2022-03-31Allow a little leeway when HMRGravatar Jarred Sumner 1-1/+2
2022-03-25[bun.js] configuration and error handling for HTTP serverGravatar Jarred Sumner 1-9/+11
2022-03-19generate separate interop code for bunGravatar Jarred Sumner 3-4/+18
2022-03-11Source Maps for client-side errors & columnsGravatar Jarred Sumner 1-0/+2
2022-03-06source maps work for app code in `bun dev`!Gravatar Jarred Sumner 1-8/+59
2022-02-24[bun dev] Don't log errors twiceGravatar Jarred Sumner 1-1/+0
2022-02-20[bun dev] Implement copy as markdownGravatar Jarred Sumner 1-2/+50
2022-02-08Possibly fix #98Gravatar Jarred Sumner 1-0/+1
2022-01-30`""`Gravatar Jarred Sumner 1-2/+5
2022-01-30[bun dev] Add error faviconGravatar Jarred Sumner 1-0/+38
2022-01-29Embed React Fast Refresh in BunGravatar Jarred Sumner 2-10/+43
Fixes https://github.com/Jarred-Sumner/bun/issues/62 If the project has it's own copy of react fast refresh and is bundling, it will use that instead.
2022-01-02prettierGravatar Jarred Sumner 1-24/+66
2022-01-01[bun dev] Improve filesystem watcher & HMR reliability (Linux + a little macOS)Gravatar Jarred SUmner 1-8/+116
Text editors like Replit save through atomic file updates. In an inotify filesystem watcher (Linux), that appears to be a delete followed by moving the file to the directory. Now when known files are moved into a directory, the watcher sends the file change notification to the browser(s). From there, the browser looks at it's files to determine whether or not Additionally, if an existing HMR connection does not know about a file ID passed to it, it asks the browser to reply with the file path and then starts watching that file. This improves HMR reliabiality if Bun had been restarted but the page hadn't been restarted.
2021-11-21[HMR] Large perf improvement for JS hot reloads at runtimeGravatar Jarred Sumner 1-7/+49
From benchmarking, I noticed that a lot of time was spent running `HMRModule.update()`. We don't need to call that function if updates for the same module ID have not changed any exports
2021-10-15PolishGravatar Jarred Sumner 1-3/+5
2021-09-23Embed regeneratorRuntime so that things which expect it to be a global still ↵Gravatar Jarred Sumner 2-0/+766
work
2021-09-17Fix bugs with ESM -> CJS when not bundledGravatar Jarred Sumner 1-0/+14
2021-09-11bun:error.js into separate module, ensure we don't include fast refresh in ↵Gravatar Jarred Sumner 1-40/+152
Bun.js, log build errors to browser console, don't warn for node_modules,
2021-09-09currentjarred/fetch-experimentGravatar Jarred Sumner 1-1/+1
2021-09-07WIP error cssGravatar Jarred Sumner 1-13/+47
Former-commit-id: 36f03bf491cf274f68361e334a706538464ee271
2021-09-06Always store the list of stylesheetsGravatar Jarred Sumner 1-4/+6
Former-commit-id: 867ebf04348439c48037e4944fef6d48a33555bd
2021-08-31Fallback, fragments, printer compat, better errorsGravatar Jarred Sumner 1-1/+1
Former-commit-id: 486e8c9d460eeebea024e96dbabcb7f2bfaffafb
2021-08-26Fix file loader, automatically support CSS imports when a framework isn't setGravatar Jarred Sumner 1-2/+134
Former-commit-id: 94750e5987ea8f6e4c946bfc06715e09a48c0eec
2021-08-17fix jsxGravatar Jarred Sumner 1-0/+1
Former-commit-id: a9bfcbce261798cdd0c3f8cb09076dc246920b48
2021-08-17Fix CSS bug, dont' run HMR code on serverGravatar Jarred Sumner 1-3/+3
Former-commit-id: 541084b7238d54d77cb13402274718311f2030b4
2021-08-17alright thats the renameGravatar Jarred Sumner 1-2/+3
Former-commit-id: 0faf61249e76382dfb1aa8721249474eae920753
2021-08-15A little less crashyGravatar Jarred Sumner 1-0/+7
Former-commit-id: f90ce9e4563de98ad2b6524653821411dd262243
2021-08-15rename to bunGravatar Jarred Sumner 1-5/+5
Former-commit-id: f982fc85fac3f0120e1851ad4027dd8413216439
2021-08-15Fix reconnect logicGravatar Jarred Sumner 1-18/+43
Former-commit-id: 67fc1488169e9779794b23600401f70a1e812cad
2021-08-09Split up + generate client & server bundles, support framework +router in ↵Gravatar Jarred Sumner 1-1/+1
GenerateNodeModulesBundle , read framework from package.json + rename "publicURL" to "origin" + add import.meta.filepath Former-commit-id: 1e76ebb5375247231181ec19a6396c6acf4684fb
2021-08-05router almost worksGravatar Jarred Sumner 1-4/+8
Former-commit-id: a8b9d27bd0946f9c48bd8e4b5b5c2031aa434f28
2021-08-05alright server-side reloading code worksGravatar Jarred Sumner 1-1/+1
Former-commit-id: a49ef52eec1037014e3c9cda1a09f387a01116b8
2021-08-01hmGravatar Jarred Sumner 2-0/+83
Former-commit-id: 0dc1c1a74b845d037326f4f2facd786924ca722e
2021-06-20Support live-reload and fallbackGravatar Jarred Sumner 1-708/+990
Former-commit-id: c3f9d77391589b65951616a632af87107fba469f
2021-06-19Use CSSOM for HMR when available.Gravatar Jarred Sumner 1-33/+136
Former-commit-id: 72f1c676b97c0380981c295b955174b84317bf5e
2021-06-18CSS HMR!Gravatar Jarred Sumner 1-126/+251
Former-commit-id: 3f10c8790629ab157d9377759cc50a4b962cc6f4
2021-06-18100x!!Gravatar Jarred Sumner 1-0/+142
Former-commit-id: e0fa2e78da8083dc590c4b1f3d016ba545261b84
2021-06-14HMR crashily works, started working on CSS ScannerGravatar Jarred Sumner 1-48/+59
Former-commit-id: d0f91082fcc8da17d224acb5432339c5d817e1c2
2021-06-14extremely close!!!!!Gravatar Jarred Sumner 1-107/+193
Former-commit-id: 44fce3c5e800f3fb3fbc139a38f14eae9e0c0225
2021-06-12I think thats the JS part of HMRGravatar Jarred Sumner 2-0/+393
Former-commit-id: 43380a4d68d57f3d78f5b1e00962a59461140967