devtools/packages
Alem Tuzlak 40f32e4cda
fix(devtools-vite): inject data-tsd-source before other plugins transform (#548)
* fix(devtools-vite): inject data-tsd-source before other plugins transform

inject-source uses `enforce: 'pre'`, so a `pre` plugin listed before
devtools() transformed the code first. When that plugin changes the code of
one environment only (a server-function compiler, for example), the lines
shift, and data-tsd-source differs between the SSR and client output. React
then reports a hydration mismatch, for example
`editor.tsx:632:5` on the server and `editor.tsx:636:5` on the client.

The transform hook now has `order: 'pre'`, so it runs before the other
plugins' transform hooks, whatever their position in the array.

Fixes #405
Fixes #189

* docs(devtools-vite): note that an earlier order: 'pre' transform still runs first
History 2026-10-29 16:18:54 +01:00
..
angular-devtools ci: Version Packages (#530) 2026-09-23 13:31:18 +02:00
devtools fix(devtools): stop delegating pointermove on the trigger (#544) 2026-10-29 16:17:32 +01:00
devtools-a11y fix(solid): cap solid-js peer range at ^1 (#557) 2026-10-29 16:12:35 +01:00
devtools-bundler-core fix(devtools-bundler-core): validate package and import names from the event bus (#545) 2026-10-29 16:14:37 +01:00
devtools-client ci: Version Packages (#475) 2026-06-24 13:21:43 +02:00
devtools-rspack ci: Version Packages (#512) 2026-08-20 12:38:11 +02:00
devtools-ui fix(solid): cap solid-js peer range at ^1 (#557) 2026-10-29 16:12:35 +01:00
devtools-utils fix(solid): cap solid-js peer range at ^1 (#557) 2026-10-29 16:12:35 +01:00
devtools-vite fix(devtools-vite): inject data-tsd-source before other plugins transform (#548) 2026-10-29 16:18:54 +01:00
devtools-webmcp ci: Version Packages (#530) 2026-09-23 13:31:18 +02:00
event-bus ci: Version Packages (#506) 2026-08-19 18:56:50 +02:00
event-bus-client chore: upgrade Vitest to v4 (#497) 2026-08-12 16:20:22 +02:00
preact-devtools ci: Version Packages (#552) 2026-10-11 13:01:21 -05:00
react-devtools ci: Version Packages (#530) 2026-09-23 13:31:18 +02:00
solid-devtools fix(solid): cap solid-js peer range at ^1 (#557) 2026-10-29 16:12:35 +01:00
svelte-devtools ci: Version Packages (#530) 2026-09-23 13:31:18 +02:00
vue-devtools ci: Version Packages (#530) 2026-09-23 13:31:18 +02:00