Skip to content
Permalink
Browse files
fix(ssr): avoid ast.helpers duplication (#6664)
  • Loading branch information
antfu committed Sep 27, 2022
1 parent b1817fe commit 57ffc3e546395ba048009396a4b82d3f968cca2c
Showing 1 changed file with 4 additions and 3 deletions.
@@ -48,9 +48,10 @@ export function ssrCodegenTransform(ast: RootNode, options: CompilerOptions) {
context.body.push(
createCompoundExpression([`const _cssVars = { style: `, varsExp, `}`])
)
Array.from(cssContext.helpers.keys()).forEach(helper =>
ast.helpers.push(helper)
)
Array.from(cssContext.helpers.keys()).forEach(helper => {
if (!ast.helpers.includes(helper))
ast.helpers.push(helper)
})
}

const isFragment =

0 comments on commit 57ffc3e

Please sign in to comment.