ember-eslint-parser 0.3.1 → 0.3.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/package.json +1 -1
- package/src/parser/transforms.js +1 -1
package/package.json
CHANGED
package/src/parser/transforms.js
CHANGED
|
@@ -342,7 +342,7 @@ module.exports.preprocessGlimmerTemplates = function preprocessGlimmerTemplates(
|
|
|
342
342
|
|
|
343
343
|
// ast should not contains empty text nodes
|
|
344
344
|
for (const node of emptyTextNodes) {
|
|
345
|
-
const children = node.parent.children || node.parent.body;
|
|
345
|
+
const children = node.parent.children || node.parent.body || node.parent.parts;
|
|
346
346
|
const idx = children.indexOf(node);
|
|
347
347
|
children.splice(idx, 1);
|
|
348
348
|
}
|