arch-unplugin
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesearch-unplugin skills cover unplugin-starter: a template for writing one plugin API and shipping it across Vite, Rollup, Webpack, Nuxt, esbuild, Farm, Rspack, and Astro. Use these skills when creating or maintaining an unplugin-based package.
The skill is based on unplugin-starter (unplugin template), generated at 2026-01-30.
arch-unplugin技能涵盖unplugin-starter:这是一个模板,只需编写一套插件API,即可适配Vite、Rollup、Webpack、Nuxt、esbuild、Farm、Rspack和Astro等多个构建工具。在创建或维护基于unplugin的包时可使用这些技能。
本技能基于unplugin-starter(unplugin模板)生成,生成时间为2026-01-30。
Core References
核心参考
| Topic | Description | Reference |
|---|---|---|
| Overview | What unplugin-starter is, unplugin architecture, template usage | core-overview |
| Project structure | Package exports, src layout, entry points | core-project-structure |
| Factory and API | UnpluginFactory, createUnplugin, transformInclude, transform | core-factory-api |
| CI | GitHub Actions — lint, typecheck, build, test | core-ci |
| 主题 | 描述 | 参考 |
|---|---|---|
| 概述 | unplugin-starter是什么、unplugin架构、模板使用方法 | core-overview |
| 项目结构 | 包导出、src目录结构、入口文件 | core-project-structure |
| 工厂与API | UnpluginFactory、createUnplugin、transformInclude、transform | core-factory-api |
| CI | GitHub Actions — 代码检查、类型校验、构建、测试 | core-ci |
Features
功能特性
| Topic | Description | Reference |
|---|---|---|
| Bundlers | Vite, Rollup, Webpack, esbuild, Farm, Rspack integration | features-bundlers |
| Nuxt module | defineNuxtModule, addVitePlugin, addWebpackPlugin | features-nuxt |
| Astro | Astro config hook, pushing unplugin.vite() into Vite plugins | features-astro |
| 主题 | 描述 | 参考 |
|---|---|---|
| 构建工具集成 | Vite、Rollup、Webpack、esbuild、Farm、Rspack集成 | features-bundlers |
| Nuxt模块 | defineNuxtModule、addVitePlugin、addWebpackPlugin | features-nuxt |
| Astro集成 | Astro配置钩子、将unplugin.vite()加入Vite插件列表 | features-astro |
Best Practices
最佳实践
| Topic | Description | Reference |
|---|---|---|
| Options and types | Options interface, typing entry points, exporting types | best-practices-options-types |
| Dev and release | dev, play, test, release workflow, playground | best-practices-dev-release |
| 主题 | 描述 | 参考 |
|---|---|---|
| 选项与类型 | 选项接口、入口文件类型定义、类型导出 | best-practices-options-types |
| 开发与发布 | dev、play、test、发布工作流、测试环境 | best-practices-dev-release |