From a29cbe1f46683b8a03db0cb19d00ad210e7a7c11 Mon Sep 17 00:00:00 2001 From: Matheus Cardoso Date: Wed, 27 Nov 2024 20:22:48 -0300 Subject: [PATCH] fix(ssr): use correct import alias for generateMarkup symbol in lwc-component --- .../ssr-compiler/src/__tests__/utils/expected-failures.ts | 1 - .../compile-template/transformers/component/lwc-component.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/@lwc/ssr-compiler/src/__tests__/utils/expected-failures.ts b/packages/@lwc/ssr-compiler/src/__tests__/utils/expected-failures.ts index d847cc1f21..5a6ca327cb 100644 --- a/packages/@lwc/ssr-compiler/src/__tests__/utils/expected-failures.ts +++ b/packages/@lwc/ssr-compiler/src/__tests__/utils/expected-failures.ts @@ -22,7 +22,6 @@ export const expectedFailures = new Set([ 'attribute-namespace/index.js', 'attribute-style/basic/index.js', 'attribute-style/dynamic/index.js', - 'dynamic-components/mixed/index.js', 'dynamic-slots/index.js', 'exports/component-as-default/index.js', 'if-conditional-slot-content/index.js', diff --git a/packages/@lwc/ssr-compiler/src/compile-template/transformers/component/lwc-component.ts b/packages/@lwc/ssr-compiler/src/compile-template/transformers/component/lwc-component.ts index def8da56bb..b1a5f8a5b6 100644 --- a/packages/@lwc/ssr-compiler/src/compile-template/transformers/component/lwc-component.ts +++ b/packages/@lwc/ssr-compiler/src/compile-template/transformers/component/lwc-component.ts @@ -37,7 +37,7 @@ const bYieldFromDynamicComponentConstructorGenerator = esTemplateWithYield` const scopeToken = hasScopedStylesheets ? stylesheetScopeToken : undefined; - yield* Ctor[SYMBOL__GENERATE_MARKUP]( + yield* Ctor[__SYMBOL__GENERATE_MARKUP]( null, childProps, childAttrs, @@ -56,7 +56,7 @@ export const LwcComponent: Transformer = function LwcComponent(n cxt.import({ getReadOnlyProxy: '__getReadOnlyProxy', LightningElement: undefined, - SYMBOL__GENERATE_MARKUP: undefined, + SYMBOL__GENERATE_MARKUP: '__SYMBOL__GENERATE_MARKUP', }); return bYieldFromDynamicComponentConstructorGenerator(