@marko/translator-default 6.0.0 → 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -195,7 +195,7 @@ function getContentType(tag) {
195
195
  hasRenderBody = true;
196
196
  break;
197
197
  }
198
- } else if (!child.isMarkoScriptlet()) {
198
+ } else if (!child.isMarkoScriptlet() && !child.isMarkoComment()) {
199
199
  hasRenderBody = true;
200
200
  }
201
201
 
package/dist/tag/index.js CHANGED
@@ -44,16 +44,17 @@ var _nativeTag = _interopRequireDefault(require("./native-tag"));function _getRe
44
44
  }
45
45
  }
46
46
 
47
- if (path.hub.file.markoOpts.ignoreUnrecognizedTags && !tagDef) {
48
- (0, _babelUtils.findAttributeTags)(path).forEach((child) => {
49
- child.set(
50
- "name",
51
- _compiler.types.stringLiteral(`at_${child.get("name.value").node.slice(1)}`)
52
- );
53
- });
54
- }
55
-
56
47
  if (!(0, _babelUtils.isAttributeTag)(path)) {
48
+ if (path.hub.file.markoOpts.ignoreUnrecognizedTags && !tagDef) {
49
+ (0, _babelUtils.findAttributeTags)(path).forEach(function replaceAttrTagName(child) {
50
+ child.set(
51
+ "name",
52
+ _compiler.types.stringLiteral(`at_${child.get("name.value").node.slice(1)}`)
53
+ );
54
+ (0, _babelUtils.findAttributeTags)(child).forEach(replaceAttrTagName);
55
+ });
56
+ }
57
+
57
58
  if ((0, _babelUtils.isDynamicTag)(path) || !((0, _babelUtils.isMacroTag)(path) || (0, _babelUtils.isNativeTag)(path))) {
58
59
  (0, _attributeTag.analyzeAttributeTags)(path);
59
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/translator-default",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "Translates Marko templates to the default Marko runtime.",
5
5
  "keywords": [
6
6
  "babel",
@@ -34,8 +34,8 @@
34
34
  "self-closing-tags": "^1.0.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@marko/compiler": "^5.36.1",
38
- "marko": "^5.34.2"
37
+ "@marko/compiler": "^5.37.1",
38
+ "marko": "^5.35.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@marko/compiler": "^5.16.1",