From 413150a4ab2616322dc2ef0586a4dc315012d84a Mon Sep 17 00:00:00 2001 From: zoy Date: Sat, 18 May 2024 19:53:52 +0800 Subject: [PATCH] fix(cli): CSS preprocessor for scoped (#12860) --- packages/vant-cli/src/compiler/compile-sfc.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/vant-cli/src/compiler/compile-sfc.ts b/packages/vant-cli/src/compiler/compile-sfc.ts index c63a83a49..7cf8b2cc0 100644 --- a/packages/vant-cli/src/compiler/compile-sfc.ts +++ b/packages/vant-cli/src/compiler/compile-sfc.ts @@ -140,6 +140,9 @@ export async function compileSfc(filePath: string): Promise { filename: path.basename(cssFilePath), scoped: style.scoped, id: scopeId, + preprocessLang: style.lang as Parameters< + typeof compileStyle + >[0]['preprocessLang'], }); return outputFile(cssFilePath, trim(styleSource.code));