@vue/compiler-ssr 3.2.38 → 3.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -850,7 +850,10 @@ function ssrCodegenTransform(ast, options) {
850
850
  const cssContext = compilerDom.createTransformContext(compilerDom.createRoot([]), options);
851
851
  const varsExp = compilerDom.processExpression(compilerDom.createSimpleExpression(options.ssrCssVars, false), cssContext);
852
852
  context.body.push(compilerDom.createCompoundExpression([`const _cssVars = { style: `, varsExp, `}`]));
853
- Array.from(cssContext.helpers.keys()).forEach(helper => ast.helpers.push(helper));
853
+ Array.from(cssContext.helpers.keys()).forEach(helper => {
854
+ if (!ast.helpers.includes(helper))
855
+ ast.helpers.push(helper);
856
+ });
854
857
  }
855
858
  const isFragment = ast.children.length > 1 && ast.children.some(c => !compilerDom.isText(c));
856
859
  processChildren(ast, context, isFragment);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-ssr",
3
- "version": "3.2.38",
3
+ "version": "3.2.40",
4
4
  "description": "@vue/compiler-ssr",
5
5
  "main": "dist/compiler-ssr.cjs.js",
6
6
  "types": "dist/compiler-ssr.d.ts",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
30
30
  "dependencies": {
31
- "@vue/shared": "3.2.38",
32
- "@vue/compiler-dom": "3.2.38"
31
+ "@vue/shared": "3.2.40",
32
+ "@vue/compiler-dom": "3.2.40"
33
33
  }
34
34
  }