@marko/translator-default 5.21.3 → 5.21.4

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.
@@ -16,6 +16,15 @@ function buildIfStatement(path, args) {
16
16
 
17
17
  let nextPath = path.getNextSibling();
18
18
 
19
+ while (
20
+ nextPath.isMarkoComment() ||
21
+ nextPath.isMarkoText() && /^\s*$/.test(nextPath.node.value))
22
+ {
23
+ const ignorePath = nextPath;
24
+ nextPath = nextPath.getNextSibling();
25
+ ignorePath.remove();
26
+ }
27
+
19
28
  // Provide the if statement to the next part of the if chain.
20
29
  if (nextPath.isMarkoTag()) {
21
30
  const nextTagName = nextPath.get("name");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/translator-default",
3
3
  "description": "Translates Marko templates to the default Marko runtime.",
4
- "version": "5.21.3",
4
+ "version": "5.21.4",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
7
7
  "dependencies": {