diff --git a/packages/compiler-sfc/src/parse.ts b/packages/compiler-sfc/src/parse.ts index 60ee4b654d5..1c75450213d 100644 --- a/packages/compiler-sfc/src/parse.ts +++ b/packages/compiler-sfc/src/parse.ts @@ -279,8 +279,8 @@ export function parse( } genMap(descriptor.template, templateColumnOffset) genMap(descriptor.script) - descriptor.styles.forEach(genMap) - descriptor.customBlocks.forEach(genMap) + descriptor.styles.forEach(s => genMap(s)) + descriptor.customBlocks.forEach(s => genMap(s)) } // parse CSS vars