Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
onmax avatar

Vite

  • 1.9k installs
  • 696 repo stars
  • Updated July 27, 2026
  • onmax/nuxt-skills

This is a copy of vite by antfu - installs and ranking accrue to the original listing.

vite is a Claude Code skill that configures Vite library builds, SSR, and multi-page apps with correct Rollup options and package.json exports for developers shipping frontend packages.

About

vite is a Claude Code skill from onmax/nuxt-skills for configuring Vite beyond default SPA setups. The skill documents library mode with defineConfig, entry resolution, fileName patterns, and rolldownOptions for externalizing Vue and React peers with globals mapping. It covers multiple library entries, SSR configuration, and package.json exports so distributable packages resolve correctly for consumers. Developers reach for vite when a Vite project needs library distribution, server-side rendering, or multi-page bundling and rollup externals or export maps are misconfigured.

  • Library mode configuration with multiple entry points
  • SSR and multi-page app setup examples
  • Output format handling for ES, UMD, and CJS
  • Package.json exports and files configuration
  • Rolldown options for externals and globals

Vite by the numbers

  • 1,896 all-time installs (skills.sh)
  • +35 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/onmax/nuxt-skills --skill vite

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.9k
repo stars696
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositoryonmax/nuxt-skills

How do you configure Vite library mode and SSR?

Quickly configure Vite for library builds, SSR, and multi-page apps with correct rollup options and package.json exports.

Who is it for?

Frontend developers publishing npm libraries or SSR apps who need precise Vite and Rollup configuration beyond create-vite defaults.

Skip if: Backend API work, Nuxt-specific routing beyond Vite config, or teams using Webpack or Turbopack exclusively.

When should I use this skill?

A Vite project needs library mode, SSR, multi-entry builds, or package.json export fixes.

What you get

Working vite.config.ts with lib entries, rolldownOptions externals, SSR settings, and correct package.json export maps.

  • vite.config.ts library and SSR settings
  • package.json export map

Files

SKILL.mdMarkdownGitHub ↗

Vite

Based on Vite 8 beta (Rolldown-powered). Vite 8 uses Rolldown bundler and Oxc transformer.

Vite is a next-generation frontend build tool with fast dev server (native ESM + HMR) and optimized production builds.

Preferences

  • Use TypeScript: prefer vite.config.ts
  • Always use ESM, avoid CommonJS

Core

TopicDescriptionReference
Configurationvite.config.ts, defineConfig, conditional configs, loadEnvcore-config
Featuresimport.meta.glob, asset queries (?raw, ?url), import.meta.env, HMR APIcore-features
Plugin APIVite-specific hooks, virtual modules, plugin orderingcore-plugin-api

Build & SSR

TopicDescriptionReference
Build & SSRLibrary mode, SSR middleware mode, ssrLoadModule, JavaScript APIbuild-and-ssr

Advanced

TopicDescriptionReference
Environment APIVite 6+ multi-environment support, custom runtimesenvironment-api
Rolldown MigrationVite 8 changes: Rolldown bundler, Oxc transformer, config migrationrolldown-migration

Quick Reference

CLI Commands

vite              # Start dev server
vite build        # Production build
vite preview      # Preview production build
vite build --ssr  # SSR build

Common Config

import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [],
  resolve: { alias: { '@': '/src' } },
  server: { port: 3000, proxy: { '/api': 'http://localhost:8080' } },
  build: { target: 'esnext', outDir: 'dist' },
})

Official Plugins

  • @vitejs/plugin-vue - Vue 3 SFC support
  • @vitejs/plugin-vue-jsx - Vue 3 JSX
  • @vitejs/plugin-react - React with Oxc/Babel
  • @vitejs/plugin-react-swc - React with SWC
  • @vitejs/plugin-legacy - Legacy browser support

Cross-Skill References

  • Testing → Use vitest skill (Vite-native testing)
  • Vue projects → Use vue skill for component patterns
  • Library bundling → Use tsdown skill for TypeScript libs

Related skills

How it compares

Pick vite over general frontend skills when the blocker is Vite-specific build configuration—library mode, SSR, or export maps—rather than component or styling work.

FAQ

What does the vite skill configure?

The vite skill configures Vite library mode, SSR, multi-page apps, rolldownOptions externals, and package.json exports. It provides vite.config.ts patterns for distributable packages with Vue or React peer dependencies.

When should I use vite versus default Vite templates?

Use the vite skill when library distribution, SSR, or multi-entry builds require custom Rollup externals and export maps. Default create-vite scaffolds lack the rolldownOptions and exports detail this skill supplies.

Is Vite safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Frontend Developmentfrontendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.