mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(compiler-test-utils): console output from native bundler callbacks reaches every open channel
B5 scoped console capture with AsyncLocalStorage and dropped output printed
outside any scope. Rolldown calls a Vite build's plugin hooks, and Rspack
its compiler/compilation hooks (other than loaders, which B5 re-enters),
from native code without Node's async context, so a compiler's
console.warn there was printed to the real console and lost to every
channel: plugin-host Vite builds, Rsbuild dev and build hosts, and
withBuildEnvironment (also Vite's default-logger warnings), which makes
"nothing reported" checks such as rsc-start-build's "production ... without
development warnings" vacuous for build-time output. The 00317474fd
capture recorded all of these.
Output printed in a scope still goes to that scope's sinks only; output
printed outside any scope now goes to every sink, as before B5.
New controls in tests/integration/native-hook-capture.test.ts: 4/4 red on
B5's console-hook, green now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
004899c713
commit
b2857ec92e
2 changed files with 201 additions and 12 deletions
Loading…
Add table
Add a link
Reference in a new issue