@lwc/template-compiler 5.3.0 → 6.0.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 +11 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -13674,6 +13674,16 @@ function transform(codeGen) {
|
|
|
13674
13674
|
data.push(property$1(identifier('styleDecls'), styleAST));
|
|
13675
13675
|
}
|
|
13676
13676
|
}
|
|
13677
|
+
else if (name === 'slot') {
|
|
13678
|
+
let slotValue;
|
|
13679
|
+
if (isExpression$1(value)) {
|
|
13680
|
+
slotValue = codeGen.bindExpression(value);
|
|
13681
|
+
}
|
|
13682
|
+
else {
|
|
13683
|
+
slotValue = isStringLiteral(value) ? literal$1(value.value) : literal$1('');
|
|
13684
|
+
}
|
|
13685
|
+
data.push(property$1(identifier('slotAssignment'), slotValue));
|
|
13686
|
+
}
|
|
13677
13687
|
else {
|
|
13678
13688
|
rest[name] = computeAttrValue(attr, element, !addSanitizationHook);
|
|
13679
13689
|
}
|
|
@@ -13845,5 +13855,5 @@ function compile(source, config) {
|
|
|
13845
13855
|
exports.compile = compile;
|
|
13846
13856
|
exports.default = compile;
|
|
13847
13857
|
exports.parse = parse;
|
|
13848
|
-
/** version:
|
|
13858
|
+
/** version: 6.0.0 */
|
|
13849
13859
|
//# sourceMappingURL=index.cjs.js.map
|