@inspecto-dev/plugin 0.2.0-alpha.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -29,5 +29,5 @@ Powered by `unplugin`, this package supports Vite, Webpack, Rspack, and Rollup.
29
29
 
30
30
  - **AST Transformation**: Uses Babel (`@babel/parser`, `@babel/traverse`) for React and `@vue/compiler-sfc` for Vue to parse source files.
31
31
  - **Source Injection**: Utilizes `MagicString` to reliably inject `data-inspecto="filepath:line:column"` attributes onto HTML elements without breaking source maps.
32
- - **Local Server Lifecycle**: Hooks into the bundler's build cycle (`buildStart`, `buildEnd`) to spawn and teardown the `@inspecto-dev/core` local HTTP server (`portfinder`) during development.
32
+ - **Local Server Lifecycle**: Starts the Inspecto local HTTP server during development from the plugin package itself. Cleanup is handled on process exit rather than in `buildEnd`, which keeps watch mode working across bundlers.
33
33
  - **Client Injection**: Automatically injects global variables (like `__AI_INSPECTOR_PORT__`) into the client bundle to allow the browser component to discover the local server port.