@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 +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11903,7 +11903,7 @@ function getTemplateRoot(ctx, documentFragment) {
|
|
|
11903
11903
|
(isTextNode$1(child) && child.value.trim().length));
|
|
11904
11904
|
if (validRoots.length > 1) {
|
|
11905
11905
|
const duplicateRoot = validRoots[1].sourceCodeLocation ?? undefined;
|
|
11906
|
-
ctx.throw(ParserDiagnostics.MULTIPLE_ROOTS_FOUND, [], duplicateRoot ? sourceLocation(duplicateRoot) : duplicateRoot ?? undefined);
|
|
11906
|
+
ctx.throw(ParserDiagnostics.MULTIPLE_ROOTS_FOUND, [], duplicateRoot ? sourceLocation(duplicateRoot) : (duplicateRoot ?? undefined));
|
|
11907
11907
|
}
|
|
11908
11908
|
const [root] = validRoots;
|
|
11909
11909
|
if (!root || !isElementNode(root)) {
|
|
@@ -14683,5 +14683,5 @@ function compile(source, filename, config) {
|
|
|
14683
14683
|
}
|
|
14684
14684
|
|
|
14685
14685
|
export { ElementDirectiveName, LWCDirectiveDomMode, LWCDirectiveRenderMode, LwcTagName, RootDirectiveName, TemplateDirectiveName, compile, compile as default, kebabcaseToCamelcase, parse, toPropertyName };
|
|
14686
|
-
/** version: 7.2.
|
|
14686
|
+
/** version: 7.2.2 */
|
|
14687
14687
|
//# sourceMappingURL=index.js.map
|