mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /area ui /kind feature /area plugin /milestone 2.21.x #### What this PR does / why we need it: This PR adds Rsbuild preset configuration support and refactors the Vite preset configuration approach for `@halo-dev/ui-plugin-bundler-kit`. - **Added Rsbuild support** - New `rsbuildConfig` function with pre-configured settings for Halo plugin development - **Refactored Vite configuration** - Improved `viteConfig` function with better preset handling - **Updated documentation** - Comprehensive README with usage examples and build tool comparison example: ```typescript // Vite import { viteConfig } from "@halo-dev/ui-plugin-bundler-kit"; export default viteConfig({ vite: { /* custom config */ } }); // Rsbuild import { rsbuildConfig } from "@halo-dev/ui-plugin-bundler-kit"; export default rsbuildConfig({ rsbuild: { /* custom config */ } }); ``` real-world example: https://github.com/guqing/plugin-metrics-graph/pull/5 For detailed configuration options and examples, please refer to the updated README.md ⚠️ `HaloUIPluginBundlerKit` function is now deprecated (still functional but marked for removal) #### Which issue(s) this PR fixes: Fixes # #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 重构 `@halo-dev/ui-plugin-bundler-kit`,以预配置的方式为插件提供 Vite 和 Rsbuild 的构建配置。 ``` |
||
---|---|---|
.. | ||
.husky | ||
.vscode | ||
console-src | ||
docs | ||
packages | ||
public | ||
scripts | ||
src | ||
uc-src | ||
.editorconfig | ||
.env.development | ||
.env.production | ||
.eslintrc.cjs | ||
.gitignore | ||
.gitpod.yml | ||
.npmignore | ||
.npmrc | ||
.prettierignore | ||
Makefile | ||
README.md | ||
build.gradle | ||
env.d.ts | ||
index.html | ||
package.json | ||
pnpm-lock.yaml | ||
pnpm-workspace.yaml | ||
postcss.config.cjs | ||
prettier.config.cjs | ||
tailwind.config.cjs | ||
tsconfig.app.json | ||
tsconfig.json | ||
tsconfig.node.json | ||
tsconfig.vitest.json | ||
vite.config.ts | ||
vite.uc.config.ts | ||
vitest.config.ts |