Registry / devops / vite-plugin-doubleshot

vite-plugin-doubleshot

JSON →
library0.0.22jsnpmunverified

Vite plugin integrating @doubleshot/builder for building Node.js backend or Electron main process code with Vite. Version 0.0.22, early-stage (not production-ready). It leverages esbuild for fast bundling and supports TypeScript out of the box. Differentiators: unified configuration for Electron and NestJS projects, seamless Vite integration, and automatic external handling.

npm install vite-plugin-doubleshot
INSTALL
IMPORT
SIG · VITE-PLUGIN-DOUBLE
V
vite-plugin-doubleshot
devopsjavascriptv0.0.22
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VitePluginDoubleshot
import { VitePluginDoubleshot } from 'vite-plugin-doubleshot'
const VitePluginDoubleshot = require('vite-plugin-doubleshot')
This package is ESM-only; use import syntax. No default export.

Adds the Doubleshot plugin to Vite config for building Electron main process.

// vite.config.ts import { defineConfig } from 'vite' import { VitePluginDoubleshot } from 'vite-plugin-doubleshot' export default defineConfig({ plugins: [ VitePluginDoubleshot({ type: 'electron', main: 'dist/main/index.js', entry: 'src/index.ts', outDir: 'dist/main', external: ['electron'] }) ] })
Debug
Known issues
gotchaPackage is in early stage and not recommended for production use.
fix
Use other stable tools like electron-builder or electron-forge for production.
affects: all
breakingThe plugin may rename or change options in future versions (minor/patch).
fix
Pin a specific version and test upgrades carefully.
affects: <1.0.0
deprecatedThe `type` option might be renamed in the future (experimental).
fix
Watch the CHANGELOG for changes to configuration schema.
affects: >=0.0.1
Errors
Common errors & fixes
Cannot find module '@doubleshot/builder'
Missing dependency @doubleshot/builder as a transitive dependency.
fix
Install @doubleshot/builder explicitly: npm install @doubleshot/builder -D
Error: The plugin 'VitePluginDoubleshot' doesn't have a 'name' property
The plugin object might be misconfigured or imported incorrectly.
fix
Ensure you are using the named export: import { VitePluginDoubleshot } from 'vite-plugin-doubleshot'
Upgrade
Version history
0.0.22latest on npm
Audit
Dependencies
viterequiredPeer dependency: requires Vite >=2.0.0 to function as a plugin.
Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
vite-plugin-doubleshot — npm install vite-plugin-doubleshot · libregistry