@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.cjs.js CHANGED
@@ -13671,6 +13671,16 @@ function transform(codeGen) {
13671
13671
  data.push(property$1(identifier('styleDecls'), styleAST));
13672
13672
  }
13673
13673
  }
13674
+ else if (name === 'slot') {
13675
+ let slotValue;
13676
+ if (isExpression$1(value)) {
13677
+ slotValue = codeGen.bindExpression(value);
13678
+ }
13679
+ else {
13680
+ slotValue = isStringLiteral(value) ? literal$1(value.value) : literal$1('');
13681
+ }
13682
+ data.push(property$1(identifier('slotAssignment'), slotValue));
13683
+ }
13674
13684
  else {
13675
13685
  rest[name] = computeAttrValue(attr, element, !addSanitizationHook);
13676
13686
  }
@@ -13842,5 +13852,5 @@ function compile(source, config) {
13842
13852
  exports.compile = compile;
13843
13853
  exports.default = compile;
13844
13854
  exports.parse = parse;
13845
- /** version: 5.0.3 */
13855
+ /** version: 5.1.0 */
13846
13856
  //# sourceMappingURL=index.cjs.js.map