vant/packages/vant-cli/src/compiler/compile-package.ts
2021-11-06 15:39:10 +08:00

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);
}