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.

referencesplugin-environment-reference.md

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

Vite 8 Plugin Environment Reference

Vite 8 plugin authoring is increasingly environment-aware.

Current Environment Access

Use this.environment inside plugin hooks when behavior depends on the active runtime.

This is a real architectural shift away from simplistic ssr booleans. When a plugin touches multiple runtimes, environment identity should drive the design.

Environment-Specific Config

export default function myPlugin() {
  return {
    name: 'my-plugin',
    configEnvironment(name) {
      if (name === 'ssr') {
        return {
          resolve: {
            conditions: ['node'],
          },
        };
      }
    },
  };
}

HMR Direction

Prefer hotUpdate for modern, environment-aware HMR customization rather than building new logic around handleHotUpdate.

Hook Filters

Use hook filters to reduce unnecessary cross-runtime work when plugins run across Rust↔JS boundaries.

transform: {
  filter: {
    id: /\.(ts|tsx)$/,
  },
  handler(code, id) {
    return { code, map: null };
  },
}

Shared Build Plugins

When a plugin must be shared across environments during build, review sharedDuringBuild or related builder-sharing settings instead of assuming old single-pipeline behavior.

Rolldown Detection

When debugging plugin compatibility, this.meta.rolldownVersion can help detect whether the plugin is running under the new engine assumptions.

Module Type Hint

If a load or transform hook turns non-JS content into executable JS, return moduleType: 'js' so Rolldown can classify it correctly.

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