@lwc/template-compiler 5.2.2 → 5.3.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 +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -13062,7 +13062,10 @@ class CodeGen {
|
|
|
13062
13062
|
// Depth-first traversal. We assign a partId to each element, which is an integer based on traversal order.
|
|
13063
13063
|
while (stack.length > 0) {
|
|
13064
13064
|
const node = stack.shift();
|
|
13065
|
-
|
|
13065
|
+
// Skip comment nodes in parts count, as they will be stripped in production, unless when `lwc:preserve-comments` is enabled
|
|
13066
|
+
if (!isComment(node) || this.preserveComments) {
|
|
13067
|
+
partId++;
|
|
13068
|
+
}
|
|
13066
13069
|
if (isElement(node)) {
|
|
13067
13070
|
// has event listeners
|
|
13068
13071
|
if (node.listeners.length) {
|
|
@@ -13816,5 +13819,5 @@ function compile(source, config) {
|
|
|
13816
13819
|
}
|
|
13817
13820
|
|
|
13818
13821
|
export { ElementDirectiveName, LWCDirectiveDomMode, LWCDirectiveRenderMode, LwcTagName, RootDirectiveName, TemplateDirectiveName, compile, compile as default, parse };
|
|
13819
|
-
/** version: 5.
|
|
13822
|
+
/** version: 5.3.0 */
|
|
13820
13823
|
//# sourceMappingURL=index.js.map
|