@marko/compiler 5.37.7 → 5.37.8
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.
|
@@ -251,7 +251,8 @@ function parseMarko(file) {
|
|
|
251
251
|
const tagName = parseTemplateString(part);
|
|
252
252
|
const node = t.markoTag(tagName, [], t.markoTagBody());
|
|
253
253
|
let parseType = _htmljsParser.TagType.html;
|
|
254
|
-
node.start =
|
|
254
|
+
node.start =
|
|
255
|
+
part.start - (part.start && code[part.start - 1] === "<" ? 1 : 0); // Account for leading `<` in html mode.
|
|
255
256
|
node.end = part.end;
|
|
256
257
|
|
|
257
258
|
if (t.isStringLiteral(tagName)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
|
-
"version": "5.37.
|
|
3
|
+
"version": "5.37.8",
|
|
4
4
|
"description": "Marko template to JS compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"babel",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@babel/traverse": "^7.25.3",
|
|
67
67
|
"@babel/types": "^7.25.2",
|
|
68
68
|
"@luxass/strip-json-comments": "^1.3.2",
|
|
69
|
-
"@marko/babel-utils": "^6.5.
|
|
69
|
+
"@marko/babel-utils": "^6.5.5",
|
|
70
70
|
"complain": "^1.6.0",
|
|
71
71
|
"he": "^1.2.0",
|
|
72
72
|
"htmljs-parser": "^5.5.2",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"source-map-support": "^0.5.21"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@marko/translator-default": "^6.0.
|
|
83
|
+
"@marko/translator-default": "^6.0.10"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|