For library authors: marks defineDiagnostics() calls as pure and guards diagnostic call sites with process.env.NODE_ENV !== 'production' so diagnostics tree-shake out of production builds.
Adapters for other bundlers are available via .rollup(), .rolldown(), .webpack(), .rspack(), .esbuild(), and .farm().
@nostics/unplugin/dev-server-collector
For app developers: listens on the Vite dev-server WebSocket for diagnostics emitted by createDevReporter() in the browser and appends them as NDJSON to a local log file.