From c1e9cf7953a85d1324e33ec1ebeaff03fc0ffd90 Mon Sep 17 00:00:00 2001 From: kooriookami Date: Tue, 3 Aug 2021 11:28:30 +0800 Subject: [PATCH] fix style --- src/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style.ts b/src/style.ts index e4d743a..fcab970 100644 --- a/src/style.ts +++ b/src/style.ts @@ -16,7 +16,7 @@ export async function transformStyle( filename, id: `data-v-${descriptor.id}`, map: pluginContext.getCombinedSourcemap(), - scoped: !!block.scoped, + scoped: !!block?.scoped, trim: true, })