@lwc/template-compiler 5.0.3 → 5.1.1-alpha.0

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.
package/dist/index.js CHANGED
@@ -13647,6 +13647,16 @@ function transform(codeGen) {
13647
13647
  data.push(property$1(identifier('styleDecls'), styleAST));
13648
13648
  }
13649
13649
  }
13650
+ else if (name === 'slot') {
13651
+ let slotValue;
13652
+ if (isExpression$1(value)) {
13653
+ slotValue = codeGen.bindExpression(value);
13654
+ }
13655
+ else {
13656
+ slotValue = isStringLiteral(value) ? literal$1(value.value) : literal$1('');
13657
+ }
13658
+ data.push(property$1(identifier('slotAssignment'), slotValue));
13659
+ }
13650
13660
  else {
13651
13661
  rest[name] = computeAttrValue(attr, element, !addSanitizationHook);
13652
13662
  }
@@ -13816,5 +13826,5 @@ function compile(source, config) {
13816
13826
  }
13817
13827
 
13818
13828
  export { ElementDirectiveName, LWCDirectiveDomMode, LWCDirectiveRenderMode, LwcTagName, RootDirectiveName, TemplateDirectiveName, compile, compile as default, parse };
13819
- /** version: 5.0.3 */
13829
+ /** version: 5.1.0 */
13820
13830
  //# sourceMappingURL=index.js.map