mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 05:42:44 +08:00
11 lines
345 B
TypeScript
11 lines
345 B
TypeScript
import { build } from 'vite';
|
|
import { mergeCustomViteConfig } from '../common/index.js';
|
|
import { getViteConfigForPackage } from '../config/vite.package.js';
|
|
|
|
export async function compilePackage(
|
|
minify: boolean
|
|
): ReturnType<typeof build> {
|
|
const config = mergeCustomViteConfig(getViteConfigForPackage(minify));
|
|
return build(config);
|
|
}
|