All skills

Vite 8+ development with Rolldown and Oxc. Use when configuring vite.config.ts, migrating rollup/esbuild-era configs, authoring Vite plugins with environments and hook filters, or troubleshooting SSR, Module Runner, and production build behavior in Vite 8. Triggers on vite, vite.config.ts, rolldownOptions, oxc, module runner, environments, hotUpdate, and lightning css.

Use this Skill: https://skilld.dev/gh/nodnarbnitram/claude-code-extensions/vite-v8

This session only. Nothing lands on disk.

referencescore-config-reference.md

≈390 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Vite 8 Core Config Reference

Vite 8 config should reflect the Rolldown/Oxc architecture rather than older Rollup/esbuild-era defaults.

Core CLI

  • vite dev
  • vite build
  • vite build --ssr <entry>
  • vite preview

Config Loading

Vite 8 supports config loading modes such as bundle, runner, and native via --configLoader when debugging config execution behavior.

Preferred Config Surface

import { defineConfig } from 'vite';

export default defineConfig({
  build: {
    rolldownOptions: {
      external: ['react'],
    },
  },
  oxc: {
    jsxInject: "import React from 'react'",
  },
  environments: {
    ssr: {},
  },
});

Migration Notes

  • Prefer build.rolldownOptions over build.rollupOptions
  • Prefer oxc over esbuild in new Vite 8 guidance
  • Default build targeting follows the Baseline Widely Available browser target
  • Lightning CSS is part of the modern Vite 8 direction for CSS processing/minification
  • Node.js must satisfy the Vite 8 runtime floor (20.19+ or 22.12+)
  • build.commonjsOptions is effectively a no-op in the Rolldown era and should not be treated as a first-line tuning lever

CommonJS Interop Note

Vite 8 tightened default-import behavior for CommonJS modules. When a CJS import suddenly behaves differently across older and newer examples, treat that as a real migration boundary rather than a random build bug.

Environment Configuration

Use environments when runtime behavior differs meaningfully between client, SSR, edge, or custom execution targets.

Source: SKILL.md on GitHub

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    The skill provides technical guidance and code patterns for Vite 8 development, focusing on modern architectures like Rolldown and Oxc. No malicious patterns, obfuscation, or unauthorized data access were detected.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at ca1a51b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago
version
1.0.0
metadata
{
  "author": "Brandon Martin"
}

README badge

README badge for nodnarbnitram/claude-code-extensions/vite-v8