unplugin

Unified plugin system for Vite, Rollup, webpack, esbuild, Rspack, Farm, Rolldown, and Bun. Use when authoring or consuming build-tool plugins that work across bundlers.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "unplugin" with this command: npx skills add hairyf/skills/hairyf-skills-unplugin

Unplugin provides a single Rollup-style plugin API that runs on Vite, Rollup, webpack, esbuild, Rspack, Rolldown, Farm, and Bun. Use these skills when implementing a new unplugin, integrating an existing one, or debugging hook/context behavior across bundlers.

The skill is based on unplugin v3.0.0, generated at 2026-01-30.

Core References

TopicDescriptionReference
OverviewWhat unplugin is, supported bundlers, when to usecore-overview
Core APIcreateUnplugin, factory signature, bundler-specific creatorscore-api
Hooks and contextLifecycle hooks, filters, this.parse / emitFile / warn / errorcore-hooks-and-context
Hook compatibilityPer-bundler support tables for hooks and contextcore-hook-compatibility
IntegrationInstalling and registering in Vite, Rollup, webpack, etc.core-integration

Features

TopicDescriptionReference
Filtersfilter option for resolveId, transform, load (performance)features-filters
Nested pluginsReturning an array of plugins from the factoryfeatures-nested-plugins
Bundler-specificmeta.framework, escape hatches (vite/webpack/esbuild/…), createXxxPluginfeatures-bundler-specific
Virtual modulesresolveId + load pattern; filter for loadfeatures-virtual-modules
ParsingsetParseImpl, this.parse; when needed (esbuild, webpack, etc.)features-parsing
Output and assetsemitFile (EmittedAsset only), writeBundle (timing only)features-output-and-assets

Best Practices

TopicDescriptionReference
Conventionsunplugin- prefix, keyword, default + subpath exportsbest-practices-conventions
Diagnosticsthis.warn / this.error, UnpluginMessage shapebest-practices-diagnostics
ScaffoldingTemplates (unplugin-starter), try online, prerequisitesbest-practices-scaffolding

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

tailwindcss

No summary provided by upstream source.

Repository SourceNeeds Review
-747
hairyf
General

hairy-utils

No summary provided by upstream source.

Repository SourceNeeds Review
-689
hairyf
General

react-use

No summary provided by upstream source.

Repository SourceNeeds Review
-503
hairyf