@vue-devtools-rstack/rsbuild
v0.1.0
Published
An Rsbuild plugin for Vue DevTools - feature parity with vite-plugin-vue-devtools
Downloads
58
Maintainers
Readme
@vue-devtools-rstack/rsbuild
Vue DevTools for Rsbuild - feature parity with
vite-plugin-vue-devtools.
pnpm add -D @vue-devtools-rstack/rsbuild// rsbuild.config.ts
import { defineConfig } from '@rsbuild/core'
import { pluginVue } from '@rsbuild/plugin-vue'
import { pluginVueDevTools } from '@vue-devtools-rstack/rsbuild'
export default defineConfig({
plugins: [pluginVue(), pluginVueDevTools()],
})The overlay appears in your app during rsbuild dev; the panel is also served standalone at
/__devtools__/. Production builds are untouched.
Options
pluginVueDevTools({
// Click-to-source component picker. Pass an options object to configure the
// vendored vue-inspector overlay.
componentInspector: true,
// Editor launched by open-in-editor requests.
launchEditor: process.env.LAUNCH_EDITOR ?? 'code',
// Import the overlay from a matching module instead of injecting a <script>
// tag - for apps without an HTML entry.
appendTo: '',
})Everything is scoped to rsbuild dev. The dev-server base path (server.base) is honoured by all
mounted endpoints.
See the project README for how it works and the feature-parity matrix.
MIT. Consumes the prebuilt Vue DevTools client from vite-plugin-vue-devtools (MIT, © webfansplz
and the vuejs/devtools contributors).
