diff --git a/packages/vant-cli/src/compiler/compile-site.ts b/packages/vant-cli/src/compiler/compile-site.ts index c3eab7bc8..3b70a2e52 100644 --- a/packages/vant-cli/src/compiler/compile-site.ts +++ b/packages/vant-cli/src/compiler/compile-site.ts @@ -58,6 +58,8 @@ export async function compileSite(isProd = false) { }, output: { assetPrefix, + // make compilation faster + disableSourceMap: true, distPath: { root: vantConfig.build?.site?.outputDir || SITE_DIST_DIR, },