marko 6.0.0-next.3.39 → 6.0.0-next.3.40

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.
@@ -996,8 +996,15 @@ function analyzeTagNameType(tag) {
996
996
  if (name2.isStringLiteral()) {
997
997
  extra.tagNameType = name2.node.value[0] === "@" ? 3 /* AttributeTag */ : (0, import_babel_utils6.isNativeTag)(tag) ? 0 /* NativeTag */ : 1 /* CustomTag */;
998
998
  extra.tagNameNullable = extra.tagNameNullable = false;
999
- } else {
999
+ } else if (name2.isIdentifier()) {
1000
1000
  analyzeExpressionTagName(name2, extra);
1001
+ if (extra.tagNameType === 0 /* NativeTag */) {
1002
+ extra.tagNameType = 2 /* DynamicTag */;
1003
+ }
1004
+ } else if (name2.isTemplateLiteral() && !name2.node.expressions.length) {
1005
+ extra.tagNameType = 0 /* NativeTag */;
1006
+ } else {
1007
+ extra.tagNameType = 2 /* DynamicTag */;
1001
1008
  }
1002
1009
  if (extra.tagNameType === void 0) {
1003
1010
  extra.tagNameType = 2 /* DynamicTag */;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.0-next.3.39",
3
+ "version": "6.0.0-next.3.40",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",