@lwc/template-compiler 7.2.1 → 7.2.2

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
@@ -11927,7 +11927,7 @@ function getTemplateRoot(ctx, documentFragment) {
11927
11927
  (isTextNode$1(child) && child.value.trim().length));
11928
11928
  if (validRoots.length > 1) {
11929
11929
  const duplicateRoot = validRoots[1].sourceCodeLocation ?? undefined;
11930
- ctx.throw(errors.ParserDiagnostics.MULTIPLE_ROOTS_FOUND, [], duplicateRoot ? sourceLocation(duplicateRoot) : duplicateRoot ?? undefined);
11930
+ ctx.throw(errors.ParserDiagnostics.MULTIPLE_ROOTS_FOUND, [], duplicateRoot ? sourceLocation(duplicateRoot) : (duplicateRoot ?? undefined));
11931
11931
  }
11932
11932
  const [root] = validRoots;
11933
11933
  if (!root || !isElementNode(root)) {
@@ -14711,5 +14711,5 @@ exports.default = compile;
14711
14711
  exports.kebabcaseToCamelcase = kebabcaseToCamelcase;
14712
14712
  exports.parse = parse;
14713
14713
  exports.toPropertyName = toPropertyName;
14714
- /** version: 7.2.1 */
14714
+ /** version: 7.2.2 */
14715
14715
  //# sourceMappingURL=index.cjs.js.map