mirror of
https://github.com/TanStack/devtools.git
synced 2026-11-16 10:49:48 +00:00
* feat(bundler-core): scaffold @tanstack/devtools-bundler-core package * feat(bundler-core): move framework-agnostic logic out of devtools-vite * feat(bundler-core): add dev-state singleton for loader/plugin sharing * refactor(devtools-vite): consume @tanstack/devtools-bundler-core * test(bundler-core): relocate handleDevToolsRequest routing tests from devtools-vite * feat(devtools-rspack): scaffold package with skeleton exports * feat(devtools-rspack): transform pipeline loader * feat(devtools-rspack): plugin (loader injection, event bus, dev middleware, package manager) + dev-server port routing * chore(devtools): fix core import ordering + guard rspack package-manager wiring in CI * test(devtools-rspack): entry factory test * test(devtools-rspack): react rspack example + e2e smoke * chore: changesets for devtools-bundler-core + devtools-rspack Also removes the redundant @rspack/core devDependency from devtools-rspack (already declared as peerDependency, unused otherwise per knip). * fix(devtools-rspack): process @tanstack node_modules for connection placeholder + runtime-bridge injection The single loader rule excluded all of node_modules, so the __TANSTACK_DEVTOOLS_* connection placeholders (which live in @tanstack/devtools-event-bus's client, under node_modules for real consumers) were never replaced -- breaking a custom eventBusConfig.port/host/protocol. Add a second loader rule scoped to @tanstack/devtools*|event-bus* under node_modules (flat + pnpm nested layouts), and normalize the step-4 id gate to posix so it matches on Windows. Matches vite's connection-injection, which does not exclude node_modules. * fix(devtools-rspack): eager event-bus connection, gate dep-refresh on package.json, port-routing tests, doc accuracy * fix(devtools-rspack): emit package-json-read on package.json change (vite parity) * chore(devtools): formatting + lint fixes * fix(devtools-rspack): make marketplace + go-to-source work under Rspack - Seed the shared global event target before wiring the package manager so the plugin receives the client's `mounted` event and replies with `package-json-read` (the marketplace stayed empty without it), and gate the wiring on the compiler mode instead of `process.env.NODE_ENV`, which isn't set at `apply()` time under `rspack serve`. - Normalize the module path before stripping cwd in enhance-logs and inject-source so Rspack's backslash ids on Windows don't leak an absolute path that breaks editor open. - Enable `connectToServerBus` in the react-rspack example so the client connects to the event bus. * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
22 lines
536 B
22 lines
536 B