@domscribe/vue

Vue adapter for Domscribe
2,925 195
Install
npm install @domscribe/vue
Latest Version:0.5.2
Vue:3
Last Updated:Aug 9, 2026
Links: GitHub  ·  npm
Maintainer: narrator

@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

@domscribe/nuxt

Nuxt module for Domscribe

2,614 195
@domscribe/runtime

Browser-side runtime context capture for Domscribe

155,290 195

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