@open-probe/unplugin
v0.1.2
Published
Build-tool plugin (Vite/Webpack/Rspack/esbuild) that injects the open-probe runtime in development mode.
Maintainers
Readme
@open-probe/unplugin
Build-tool plugin that injects the @open-probe/core runtime
into your app's HTML during development. Powered by
unplugin, so the same plugin works
across Vite, Webpack, Rspack, and esbuild.
Use this when you don't want a reverse proxy in the loop and prefer build-time injection (e.g. inside Storybook, custom dev servers, or CI preview deployments).
Install
pnpm add -D @open-probe/unpluginUsage
Vite
// vite.config.ts
import { defineConfig } from 'vite';
import openProbe from '@open-probe/unplugin/vite';
export default defineConfig({
plugins: [
openProbe({
transport: 'mcp',
mcpEndpoint: 'http://127.0.0.1:3100',
}),
],
});Webpack / Rspack / esbuild
import openProbe from '@open-probe/unplugin/webpack'; // or /rspack, /esbuildThe plugin is a no-op in production builds by default; pass
{ enableInProd: true } to keep it on for preview environments.
License
MIT
