From 3c3f96e2681c0347fa110bf53171d3db127d5a67 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 4 Dec 2023 17:29:52 +0800 Subject: [PATCH] perf: disable source map to make compilation faster (#12484) --- packages/vant-cli/src/compiler/compile-site.ts | 2 ++ 1 file changed, 2 insertions(+) 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, },