{"id":22647,"library":"vite-plugin-doubleshot","title":"Vite Plugin Doubleshot","description":"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.","status":"active","version":"0.0.22","language":"javascript","source_language":"en","source_url":"https://github.com/archergu/doubleshot","tags":["javascript","vite","builder","electron","nestjs","esbuild","doubleshot","typescript"],"install":[{"cmd":"npm install vite-plugin-doubleshot","lang":"bash","label":"npm"},{"cmd":"yarn add vite-plugin-doubleshot","lang":"bash","label":"yarn"},{"cmd":"pnpm add vite-plugin-doubleshot","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: requires Vite >=2.0.0 to function as a plugin.","package":"vite","optional":false}],"imports":[{"note":"This package is ESM-only; use import syntax. No default export.","wrong":"const VitePluginDoubleshot = require('vite-plugin-doubleshot')","symbol":"VitePluginDoubleshot","correct":"import { VitePluginDoubleshot } from 'vite-plugin-doubleshot'"}],"quickstart":{"code":"// vite.config.ts\nimport { defineConfig } from 'vite'\nimport { VitePluginDoubleshot } from 'vite-plugin-doubleshot'\n\nexport default defineConfig({\n  plugins: [\n    VitePluginDoubleshot({\n      type: 'electron',\n      main: 'dist/main/index.js',\n      entry: 'src/index.ts',\n      outDir: 'dist/main',\n      external: ['electron']\n    })\n  ]\n})","lang":"typescript","description":"Adds the Doubleshot plugin to Vite config for building Electron main process."},"warnings":[{"fix":"Use other stable tools like electron-builder or electron-forge for production.","message":"Package is in early stage and not recommended for production use.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin a specific version and test upgrades carefully.","message":"The plugin may rename or change options in future versions (minor/patch).","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Watch the CHANGELOG for changes to configuration schema.","message":"The `type` option might be renamed in the future (experimental).","severity":"deprecated","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install @doubleshot/builder explicitly: npm install @doubleshot/builder -D","cause":"Missing dependency @doubleshot/builder as a transitive dependency.","error":"Cannot find module '@doubleshot/builder'"},{"fix":"Ensure you are using the named export: import { VitePluginDoubleshot } from 'vite-plugin-doubleshot'","cause":"The plugin object might be misconfigured or imported incorrectly.","error":"Error: The plugin 'VitePluginDoubleshot' doesn't have a 'name' property"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}