itechmeat/llm-code106 installs
vite
Vite next-gen frontend tooling: dev server, HMR, build, config, plugins, Environment API, Rolldown. Use when setting up or running a Vite project, configuring vite.config.*, authoring plugins, working with HMR or JS API, or managing environment variables and modes. Keywords: vite.config, bundler, Vite, HMR, Rolldown.
How do I install this agent skill?
npx skills add https://github.com/itechmeat/llm-code --skill viteIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides technical documentation and configuration recipes for Vite frontend tooling. It consists of legitimate reference material with no malicious instructions or security risks identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
12/27 files flagged
What does this agent skill do?
Vite
Quick navigation
- Getting started: references/getting-started.md
- Philosophy and rationale: references/philosophy.md, references/why-vite.md
- Features: references/features.md
- CLI: references/cli.md
- Plugins (usage): references/using-plugins.md
- Plugin API: references/api-plugin.md
- HMR API: references/api-hmr.md
- JavaScript API: references/api-javascript.md
- Config reference: references/config.md
- Dependency optimization: references/dep-pre-bundling.md
- Assets: references/assets.md
- Build: references/build.md
- Static deploy: references/static-deploy.md
- Env & modes: references/env-and-mode.md
- SSR: references/ssr.md
- Backend integration: references/backend-integration.md
- Troubleshooting: references/troubleshooting.md
- Performance: references/performance.md
- Rolldown: references/rolldown.md
- Migration: references/migration.md
- Breaking changes: references/breaking-changes.md
- Environment API: references/api-environment.md
- Environment instances: references/api-environment-instances.md
- Env plugins: references/api-environment-plugins.md
- Env frameworks: references/api-environment-frameworks.md
- Env runtimes: references/api-environment-runtimes.md
Core rules
- Prefer minimal configuration; extend only as needed.
- Keep
index.htmlas a first-class entry point when using Vite defaults. - Treat dev server settings and build settings separately.
- Document mode-dependent behavior for env variables and
define. - Use
futureconfig to opt-in to deprecation warnings before migration.
Recipes
- Scaffold a project with
npm create vite@latest. - Configure aliases, server options, and build outputs in
vite.config.*. - Load
.envvalues into config withloadEnvwhen config needs them. - Add plugins with
plugins: []and defineapplyorenforcewhen needed. - Use HMR APIs for fine-grained updates when plugin or framework needs it.
- Use
optimizeDeps.include/excludewhen deps aren't discovered on startup. - Use
build.rollupOptions.inputfor multi-page apps. - Use the top-level
inputoption to declare the entry once for apps withoutindex.html; it feedsbuild.rolldownOptions.input,build.lib.entry,build.ssr, andoptimizeDeps.entriesby default. - Enable deprecation warnings:
future: { removeSsrLoadModule: 'warn' }. - Use
hotUpdatehook instead ofhandleHotUpdatefor environment-aware HMR. - Use
this.environmentinstead ofoptions.ssrin plugin hooks.
Release Highlights (8.0.0)
- Default browser target is raised again under
baseline-widely-available. - CommonJS default-import interop becomes more consistent and may expose packages that relied on older ambiguous behavior.
- Vite stops resolving
browservsmodulevia format sniffing and follows configuredresolve.mainFieldsmore strictly. - JS API
build()now throwsBundleErrorwith nested.errorswhen multiple Rolldown-level errors are present. - Rolldown transition becomes more explicit:
build.rollupOptions/worker.rollupOptionsare deprecated in favor of*.rolldownOptions.
Release Highlights (8.1.0 -> 8.1.5)
- WASM ESM integration: direct
.wasmimports work as ES modules natively. - Zero-config build caching: integration with Vite Task enables build caching without manual setup.
server.hmrrenamed toserver.ws: WebSocket options move underserver.ws; update configs that set HMR transport options.- New options:
html.additionalAssetSourcesfor custom asset sources during HTML transform,import.meta.globcaseSensitive, multiple hosts via__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS, and an extended defaultserver.fs.denylist. - 8.1.1 -> 8.1.5: stability only (stack-trace handling, dependency bumps, module-resolution edge cases).
Release Highlights (8.2.0)
- New top-level
inputoption:input: string | string[] | { [entryAlias: string]: string }resolves relative to the project root and becomes the default value forbuild.rolldownOptions.input,build.lib.entry,build.ssr(when set totrue), andoptimizeDeps.entrieswhenever those are left unset; useful for apps that skipindex.htmland would otherwise repeat the same entry path in several options. The resolvedinputpaths are also added toserver.fs.allow, matching how imported modules are already allowed. - Bundled dev mode (
experimental.bundledDev): a boundary-less edit now triggers exactly one reload; the client tells the server to rebuild first and only then issuesfull-reload, so the "bundling in progress" fallback page no longer flashes between an edit and the reload. Worker files (new Worker(new URL(...)),?workerimports) are now correctly re-emitted through HMR instead of going stale after an edit. - Native loader / native-config compatibility: warnings about features unsupported by
configLoader: 'native'now include a column alongside the line number, and virtual modules are excluded from the native-config compatibility check so plugin-generated virtual files no longer trigger false positives. - Type-safe PostCSS config: Vite exports
PostcssUserConfig(re-exported frompostcss-load-config'sConfigtype) sopostcss.config.js/.tscan be typed directly. - Network URL labeling: dev server network URLs now resolve and print the OS network-interface name (e.g.
eth0,wlan0) even whenserver.hostis an explicit address, not only when Vite auto-detects every interface. - Rolldown and optimizer updates: Rolldown bumps to
~1.2.0, bringing client-side HMR handling intoexperimental.bundledDev; the dependency optimizer's lockfile-hash cache now also recognizesaube-lock.yaml(Aube) andnub.lock(nub), so those package managers correctly invalidatenode_modules/.viteon dependency changes.
Patch Notes (8.0.14 -> 8.0.16)
- Rolldown moves to
1.0.3(was1.0.2in8.0.14); if you maintain plugin or build guidance, validate it against the current Rolldown behavior instead of assuming early8.0.xpatch semantics. - Dev server now sends HTTP
408on request timeout instead of hanging the connection (8.0.15). launch-editor-middlewarerejects UNC paths and Windows alternate paths, closing a local path-traversal vector (8.0.16); relevant if you expose the dev server beyond localhost.8.0.15fixes:/@fs/HTML-proxy cache-key mismatch, relative-glob-in-virtual-module errors when no files match, closing the Rolldown bundle whenwrite()rejects, andonWarnforviteResolvePluginin JS plugin containers.transformIndexHtmlhandles trailing-slash paths more reliably, which matters for plugins and static deploy setups that rewrite or inject HTML on directory-style URLs.- Dependency scanning now passes Oxc JSX options through the optimizer path, so JSX-heavy linked dependencies should behave closer to the main transform pipeline.
Prohibitions
- Do not copy large verbatim chunks from vendor docs.
- Do not assume framework-specific behavior without verifying.
Links
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/itechmeat/llm-code/vite">View vite on skillZs</a>