@marko/runtime-tags 6.3.4 → 6.3.5
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/dist/translator/index.js +3 -2
- package/package.json +2 -2
package/dist/translator/index.js
CHANGED
|
@@ -9339,8 +9339,9 @@ function getTagRelativePath(tag) {
|
|
|
9339
9339
|
const { node, hub: { file } } = tag;
|
|
9340
9340
|
let relativePath;
|
|
9341
9341
|
if (_marko_compiler.types.isStringLiteral(node.name)) {
|
|
9342
|
-
const
|
|
9343
|
-
|
|
9342
|
+
const tagDef = (0, _marko_compiler_babel_utils.getTagDef)(tag);
|
|
9343
|
+
const template = node.extra?.featureType === "class" && tagDef?.renderer || (0, _marko_compiler_babel_utils.getTagTemplate)(tag);
|
|
9344
|
+
relativePath = template && (0, _marko_compiler_babel_utils.resolveRelativePath)(file, template, tagDef);
|
|
9344
9345
|
} else if (node.extra?.tagNameImported) relativePath = node.extra.tagNameImported;
|
|
9345
9346
|
if (!relativePath) throw tagNotFoundError(tag);
|
|
9346
9347
|
return relativePath;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/runtime-tags",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.5",
|
|
4
4
|
"description": "Optimized runtime for Marko templates.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"build": "node -r ~ts ./scripts/bundle.mts"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@marko/compiler": "^5.
|
|
54
|
+
"@marko/compiler": "^5.41.0",
|
|
55
55
|
"csstype": "^3.2.3",
|
|
56
56
|
"fastest-levenshtein": "^1.0.16",
|
|
57
57
|
"magic-string": "^0.30.21"
|