Morton Digital

← All Products

VitePress Plugin Boilerplate (CommonJS-Ready)

Start shipping VitePress plugins in 10 minutes instead of 2 hours. This boilerplate includes pre-configured dual-export setup, GitHub Actions CI/CD, and a test suite ready to validate both CommonJS and ESM on every commit.

1,639 words · Instant download · AI-assisted content

What's Inside

Free Preview — first chapter

Your boilerplate includes a Rollup configuration that handles both CommonJS and ESM without manual tweaking: ```js export default [ { input: 'src/index.ts', external: ['vitepress'], output: [ { file: 'dist/index.js', format: 'cjs', exports: 'named' }, { file: 'dist/index.mjs', format: 'es' } ], plugins: [ typescript({ tsconfig: false, compilerOptions: { declaration: true, declarationDir: 'dist', target: 'ES2020', module: 'ESNext' } }) ] } ] ``` One command builds both formats. The CI/CD workflow automatically validates both exports work on every commit.

$19.00

One-time purchase — instant download

Buy Now — $19.00

30-day money-back guarantee. If it doesn't deliver value, reply to your receipt for a full refund.

← Back to all products