@domscribe/vue
@domscribe/vue
Vue 3 adapter for Domscribe — VNode resolution, Composition + Options API support, and bundler plugins.
Install
npm install -D @domscribe/vue
Vite
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { domscribe } from '@domscribe/vue/vite';
export default defineConfig({
plugins: [vue(), domscribe()],
});
Webpack
const { DomscribeWebpackPlugin } = require('@domscribe/vue/webpack');
// Add to plugins array + add webpack loader rule
// (see @domscribe/transform README for full webpack config)
Plugin Options
The Vue plugin extends the base transform plugin options with runtime and capture namespaces:
interface DomscribeVuePluginOptions {
// Base transform options
include?: RegExp;
exclude?: RegExp;
debug?: boolean;
relay?: { autoStart?: boolean; port?: number; host?: string };
overlay?:
| boolean
| { initialMode?: 'collapsed' | 'expanded'; debug?: boolean };
// Vue-specific
runtime?: DomscribeRuntimeOptions;
capture?: DomscribeVueCaptureOptions;
}
Runtime Options
| Option | Type | Default | Description |
|---|---|---|---|
phase |
1 | 2 |
1 |
Feature phase gate (Phase 1: props/state, Phase 2: events/perf) |
redactPII |
boolean |
true |
Redact sensitive values in captured data |
blockSelectors |
string[] |
[] |
CSS selectors to exclude from capture |
serialization |
SerializationConstraints |
undefined |
Serialization bounds (maxDepth, maxArrayLength, maxTotalBytes, etc.) — see @domscribe/runtime README |
Capture Options
| Option | Type | Default | Description |
|---|---|---|---|
maxTreeDepth |
number |
50 |
Maximum component tree depth to traverse |
Subpath Exports
@domscribe/vue/vite— Vite plugin with Vue adapter@domscribe/vue/webpack— Webpack plugin with Vue adapter@domscribe/vue/auto-init— Auto-initialization module
Part of the Domscribe monorepo. License: MIT.
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.5.2 | >=3.3.0 | ||
| 0.5.1 | >=3.3.0 | ||
| 0.5.0 | >=3.3.0 | ||
| 0.4.0 | >=3.3.0 | ||
| 0.3.1 | >=3.3.0 | ||
| 0.3.0 | >=3.3.0 | ||
| 0.2.4 | >=3.3.0 | ||
| 0.2.3 | >=3.3.0 | ||
| 0.2.2 | >=3.3.0 | ||
| 0.2.1 | >=3.3.0 | ||
| 0.2.0 | >=3.3.0 | ||
| 0.1.2 | >=3.3.0 | ||
| 0.1.1 | >=3.3.0 | ||
| 0.1.0 | >=3.3.0 |