diff --git a/packages/plugin-vue/src/main.ts b/packages/plugin-vue/src/main.ts index 29c5cffa..3df0e664 100644 --- a/packages/plugin-vue/src/main.ts +++ b/packages/plugin-vue/src/main.ts @@ -299,7 +299,7 @@ async function genStyleCode( attachedProps: [string, string][] ) { let stylesCode = `` - let hasCSSModules = false + let cssModulesMap: Record | undefined if (descriptor.styles.length) { for (let i = 0; i < descriptor.styles.length; i++) { const style = descriptor.styles[i] @@ -320,12 +320,13 @@ async function genStyleCode( `