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