🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@vscode/component-explorer-vite-plugin

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vscode/component-explorer-vite-plugin

Vite plugin for the [Component Explorer](../../README.md). Discovers fixture files, generates virtual entry modules, and serves the explorer UI during development.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
19K
-18.86%
Maintainers
2
Weekly downloads
 
Created
Source

@vscode/component-explorer-vite-plugin

Vite plugin for the Component Explorer. Discovers fixture files, generates virtual entry modules, and serves the explorer UI during development.

Usage

// vite.config.ts
import { defineConfig } from 'vite';
import { componentExplorer } from '@vscode/component-explorer-vite-plugin';

export default defineConfig({
  plugins: [
    componentExplorer({
      // options (all optional)
    }),
  ],
});

Options

OptionTypeDefaultDescription
includestring'./src/**/*.fixture.{ts,tsx}'Glob pattern for discovering fixture files.
routestring'/___explorer'URL path where the explorer UI is served during development.
buildBuildMode'app-only'Controls what gets included in vite build output. See Build Modes.
outFilestring'___explorer.html'Output filename for the explorer HTML in production builds. Defaults to 'index.html' when build is 'explorer-only'.
logLevelLogLevel'info'Logging verbosity: 'silent', 'info', or 'verbose'.

Build Modes

The build option controls what gets emitted during vite build (has no effect on vite dev):

ModeDescription
'app-only'Build the app without the explorer. Suitable for production deployments.
'all'Build both the app and the explorer. Useful for CI/staging environments.
'explorer-only'Build only the explorer, emitting index.html. For static hosting of the explorer.
componentExplorer({
  build: 'all', // include explorer in production build
})

To set the build mode via an environment variable:

import { type BuildMode } from '@vscode/component-explorer-vite-plugin';

componentExplorer({
  build: (process.env.EXPLORER_BUILD as BuildMode) ?? undefined,
})

FAQs

Package last updated on 18 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts