unplugin

v2026.09.24

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.

GitHub
安装命令
npx skhub add hairyf/unplugin
Markdown
SKILL.md

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
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/unplugin

默认分支

main

最新提交

4f463c7

Tree SHA

73bcd03