rsbuild-plugin-unplugin-vueintegratesunplugin-vuewith Rsbuild and Rslib.- Package manager:
pnpm@11.24.0 - CI Node version: 22
- Main implementation:
src/index.ts - Unified tool configuration:
rstack.config.ts - No
.cursor/rules/,.cursorrules, or.github/copilot-instructions.mdin this repo.
src/index.ts: published plugin source; read this first before changing behaviortest/rsbuild/*: Rsbuild v1/v2 integration teststest/rslib/*: Rslib integration teststest/rsbuild/rsbuild-test-helper.ts: shared test helper; reuse it instead of duplicating setupplayground/*: manual sandboxesdist/*,dist-*,test-results/*: generated output; do not edit by hand
pnpm install
pnpm exec playwright install chromiumpnpm install runs the root prepare script, which also builds the package.
pnpm build
pnpm dev
pnpm check
pnpm format
pnpm lint
pnpm test
pnpm exec tsc -p 'tsconfig.json' --noEmit
pnpm bumppnpm exec rs test 'test/rslib/index.test.ts'
pnpm exec rs test 'test/rslib/index.test.ts' -t '^ESM should build succeed$'
pnpm exec rs test list 'test/rsbuild/rsbuild.v1.test.ts'Prefer file-scoped Rstest commands so unrelated suites are not discovered.
- Rstack CLI handles linting and formatting; run
pnpm formatafter meaningful edits. - Use
node:imports for Node built-ins. - Use
import typefor type-only imports. - Include file extensions in relative TypeScript imports.
- Read
src/index.tsbefore changing plugin behavior. - Run
pnpm formatandpnpm checkafter touching source files. - Run
pnpm buildafter changing published behavior. - If you change Rsbuild compatibility logic, run both:
pnpm exec rs test 'test/rsbuild/rsbuild.test.ts'pnpm exec rs test 'test/rsbuild/rsbuild.v1.test.ts'
- Close dev and preview servers explicitly in tests.