Zack Radisic
cda3eb5396
delete stupid slop tests
2025-09-22 14:43:26 -07:00
Zack Radisic
731f42ca72
fix test
2025-09-17 20:49:55 -07:00
Zack Radisic
f33a852a80
merge
2025-09-17 17:14:56 -07:00
Jarred Sumner
2eebcee522
Fix DevServer HMR sourcemap offset issues ( #22739 )
...
## Summary
Fixes sourcemap offset issues in DevServer HMR mode that were causing
incorrect line number mappings when debugging.
## Problem
When using DevServer with HMR enabled, sourcemap line numbers were
consistently off by one or more lines when shown in Chrome DevTools. In
some cases, they were off when shown in the terminal as well.
## Solution
### 1. Remove magic +2 offset
Removed an arbitrary "+2" that was added to `runtime.line_count` in
SourceMapStore.zig. The comment said "magic fairy in my dreams said it
would align the source maps" - this was causing positions to be
incorrectly offset.
### 2. Fix double-increment bug
ErrorReportRequest.zig was incorrectly adding 1 to line numbers that
were already 1-based from the browser, causing an off-by-one error.
### 3. Improve type safety
Converted all line/column handling to use `bun.Ordinal` type instead of
raw `i32`, ensuring consistent 0-based vs 1-based conversions throughout
the codebase.
## Test plan
- [x] Added comprehensive sourcemap tests for complex error scenarios
- [x] Tested with React applications in dev mode
- [x] Verified line numbers match correctly in browser dev tools
- [x] Existing sourcemap tests continue to pass
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-authored-by: Claude <noreply@anthropic.com >
2025-09-17 15:37:09 -07:00
Zack Radisic
421a4f37cd
FIX the concurrent request bug
2025-09-16 21:55:05 -07:00
Zack Radisic
34cfdf039a
Fix
2025-09-12 19:26:42 -07:00
Zack Radisic
9c5c4edac4
Bun.SSRResponse -> import { Response } from 'bun:app'
2025-09-12 15:47:26 -07:00
autofix-ci[bot]
99df2e071f
[autofix.ci] apply automated fixes
2025-09-11 02:43:47 +00:00
Zack Radisic
95cacdc6be
fix slop tests
2025-09-10 18:05:54 -07:00
Zack Radisic
39e7e55802
Move SSRResonse -> Bun.SSRResponse
2025-09-10 16:49:30 -07:00
Zack Radisic
8b35b5634a
Update stuff
2025-09-08 15:56:21 -07:00
Zack Radisic
5dcf8a8076
merge
2025-09-08 13:34:37 -07:00
Zack Radisic
d6b155f056
add test
2025-09-08 13:04:32 -07:00
Zack Radisic
ae9ecc99c9
cache react element symbols and use JSBunRequest for cookies
2025-09-05 18:03:03 -07:00
Zack Radisic
aa33b11a7a
Forgot to commit test file
2025-09-02 13:18:49 -07:00
Jarred Sumner
d4e614da8e
deflake
2025-08-27 00:13:45 -07:00
autofix-ci[bot]
c343aca21e
[autofix.ci] apply automated fixes
2025-08-26 01:33:55 +00:00
Zack Radisic
9745f01041
Merge branch 'zack/dev-server-sourcemaps-server-side' into zack/ssg-3
2025-08-13 16:32:48 -07:00
Zack Radisic
7f295919a9
Merge branch 'main' into zack/ssg-3
2025-08-13 16:28:49 -07:00
Zack Radisic
6f3e098bac
Merge branch 'main' into zack/dev-server-sourcemaps-server-side
2025-08-05 17:14:04 -07:00
Zack Radisic
f556fc987c
test
2025-07-30 21:56:09 -07:00
Jarred Sumner
93f92658b3
Try mimalloc v3 ( #17378 )
...
(For internal tracking: fixes ENG-19852)
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Kai Tamkun <kai@tamkun.io >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: taylor.fish <contact@taylor.fish >
2025-07-29 18:07:15 -07:00
Zack Radisic
740cdaba3d
- fix catch-all routes not working in dev server
...
- fix crash
- fix require bug
2025-07-27 18:31:01 -07:00
Zack Radisic
679a07caef
Fix assertion failure in dev server related to deleting files ( #21304 )
...
### What does this PR do?
Fixes an assertion failure in dev server which may happen if you delete
files. The issue was that `disconnectEdgeFromDependencyList(...)` was
wrong and too prematurely setting `g.first_deps[idx] = .none`.
Fixes #20529
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-26 16:16:55 -07:00
Jarred Sumner
a868e859d7
Run formatter
2025-07-21 01:19:09 -07:00
Zack Radisic
f4339df16b
SSG stuff ( #20998 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-20 22:37:50 -07:00
Jarred Sumner
eabbd5cbfb
Fix React HMR duplicate identifier error for named default exports ( #20812 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-04 03:06:00 -07:00
Zack Radisic
0b9bab34d8
SSG ( #20745 )
...
Co-authored-by: Alistair Smith <hi@alistair.sh >
2025-07-02 20:06:43 -07:00
Jarred Sumner
df017990aa
Implement automatic workspace folders support for Chrome DevTools ( #19949 )
2025-05-28 00:25:30 -07:00
Jarred Sumner
7b127c946d
Fix regression from #19783 ( #19837 )
2025-05-23 17:49:36 -07:00
Jarred Sumner
14b439a115
Fix formatters not running in CI + delete unnecessary files ( #19433 )
2025-05-08 23:22:16 -07:00
chloe caruso
26e296a7e8
devserver: fix cases where source maps would not remap ( #19289 )
2025-04-28 17:56:35 -07:00
chloe caruso
be65720f71
introduce basic devserver stress testing, fix two crashes ( #19237 )
2025-04-23 22:24:39 -07:00
pfg
b00e8037c5
Unblock importing html files with non-html loader ( #18912 )
2025-04-09 16:51:34 -07:00
chloe caruso
d1c77f5061
fix dev server regressions from 1.2.5's hmr rewrite ( #18109 )
...
Co-authored-by: Zack Radisic <zack@theradisic.com >
Co-authored-by: zackradisic <56137411+zackradisic@users.noreply.github.com >
2025-03-14 21:24:14 -07:00
chloe caruso
589fa6274d
dev server: forgotten changes ( #17985 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-03-07 17:53:07 -08:00
chloe caruso
66cf62c3c4
dev server: rewrite HMRModule, support sync esm + hot.accept ( #17954 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-03-07 15:12:16 -08:00
chloe caruso
483302d09d
dev server: fix some small css bugs ( #17883 )
2025-03-03 20:37:39 -08:00
chloe caruso
25c95f3bdc
hmr stability fixes ( #17794 )
2025-03-01 00:07:20 -08:00
chloe caruso
4f58ff7933
changes to JSC.Strong, fix memory leaks in dev server ( #17738 )
2025-02-27 15:09:35 -08:00
chloe caruso
ac8fb0e1f5
fix(bundler): bundling invalid html / export star as / react refresh fixes ( #17685 )
2025-02-25 22:04:10 -08:00
chloe caruso
cbeffe1b48
hmr7 ( #17641 )
2025-02-24 20:02:38 -08:00
chloe caruso
fb6f7e43d8
Dev Server: improve react refresh and export default handling ( #17538 )
2025-02-21 20:08:21 -08:00
chloe caruso
3b956757d9
disable async in script tags in dev server ( #17517 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-02-21 11:28:27 -08:00
chloe caruso
dc5fae461d
Implement simple barrel file optimization ( #17514 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-02-20 22:50:51 -08:00
chloe caruso
b082572dcb
DevServer: source map and error modal improvements ( #17476 )
2025-02-20 16:40:57 -08:00
chloe caruso
0b6aa96672
Chloe/hmr4 ( #17353 )
...
Co-authored-by: Zack Radisic <56137411+zackradisic@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-02-15 05:45:02 -08:00
Meghan Denny
7b65ca2a71
Revert "assets in css files 1"
...
This reverts commit 29c737b2b9 .
2025-02-14 17:27:33 -08:00
chloe caruso
29c737b2b9
assets in css files 1
2025-02-14 17:24:55 -08:00
chloe caruso
10663d7912
devserver: use file urls for sourcemap ( #17319 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-02-14 01:30:03 -08:00