@marko/translator-default 5.21.3 → 5.21.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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": {