@marko/compiler 5.37.6 → 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.
- package/config.d.ts +1 -1
- package/dist/babel-plugin/parser.js +2 -1
- package/dist/traverse.d.ts +1 -1
- package/package.json +3 -3
package/config.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare const Config: {
|
|
|
19
19
|
| ((
|
|
20
20
|
filename: string,
|
|
21
21
|
dep: { virtualPath: string; code: string; map?: any },
|
|
22
|
-
) => string)
|
|
22
|
+
) => string | undefined | null)
|
|
23
23
|
| null;
|
|
24
24
|
hydrateIncludeImports?: RegExp | ((request: string) => boolean);
|
|
25
25
|
hydrateInit?: boolean;
|
|
@@ -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/dist/traverse.d.ts
CHANGED
|
@@ -1457,7 +1457,7 @@ export interface BabelFile {
|
|
|
1457
1457
|
path: NodePath<t.Program>,
|
|
1458
1458
|
hub: HubInterface,
|
|
1459
1459
|
code: string,
|
|
1460
|
-
opts: Record<string, unknown
|
|
1460
|
+
opts: Record<string, unknown> & { filename: string },
|
|
1461
1461
|
metadata: Record<string, unknown> & {
|
|
1462
1462
|
marko: import("@marko/compiler").MarkoMeta
|
|
1463
1463
|
},
|
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"
|