@xaendar/compiler 0.7.17 → 0.7.18
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.
|
@@ -514,7 +514,7 @@ function generateElement(node, parentNode, index, compilerContext, anchor) {
|
|
|
514
514
|
const nodeName = getElementIdentifier(node, parentNode, index);
|
|
515
515
|
const tagName = node.tagName;
|
|
516
516
|
const retval = {
|
|
517
|
-
code: [
|
|
517
|
+
code: [],
|
|
518
518
|
functionsToProcess: /* @__PURE__ */ new Map()
|
|
519
519
|
};
|
|
520
520
|
switch (tagName) {
|
|
@@ -523,6 +523,7 @@ function generateElement(node, parentNode, index, compilerContext, anchor) {
|
|
|
523
523
|
break;
|
|
524
524
|
case "math": retval.code.push("context.createElement = createMATHMLElement");
|
|
525
525
|
}
|
|
526
|
+
retval.code.push(`const ${nodeName} = _renderElement(${parentNode}, context, ${anchor}, '${tagName}',`);
|
|
526
527
|
attributes.length ? retval.code.push(...indent([
|
|
527
528
|
"[",
|
|
528
529
|
...indent(attributes),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xaendar/compiler",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.18",
|
|
4
4
|
"description": "A library for transpiling Xaendar Templates into JavaScript code",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@xaendar/common": "0.7.
|
|
20
|
-
"@xaendar/types": "0.7.
|
|
19
|
+
"@xaendar/common": "0.7.18",
|
|
20
|
+
"@xaendar/types": "0.7.18",
|
|
21
21
|
"typescript": "^6.0.3"
|
|
22
22
|
}
|
|
23
23
|
}
|