@zenithbuild/compiler 1.0.3 → 1.0.4
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.
|
@@ -14,7 +14,7 @@ catch (e) {
|
|
|
14
14
|
* Process a page by inlining a layout
|
|
15
15
|
*/
|
|
16
16
|
export function processLayout(source, layout, props = {}) {
|
|
17
|
-
if (native && native.
|
|
17
|
+
if (native && native.processLayoutNative) {
|
|
18
18
|
try {
|
|
19
19
|
// Convert Map to record for native serialization
|
|
20
20
|
const layoutForNative = {
|
|
@@ -23,7 +23,7 @@ export function processLayout(source, layout, props = {}) {
|
|
|
23
23
|
scripts: layout.scripts,
|
|
24
24
|
styles: layout.styles
|
|
25
25
|
};
|
|
26
|
-
return native.
|
|
26
|
+
return native.processLayoutNative(source, JSON.stringify(layoutForNative), JSON.stringify(props));
|
|
27
27
|
}
|
|
28
28
|
catch (error) {
|
|
29
29
|
console.warn(`[Zenith Native] Layout processing failed: ${error.message}`);
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenithbuild/compiler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "The Iron Heart: Native Compiler for the Zenith Framework",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "tsc && cd native/compiler-native &&
|
|
24
|
+
"build": "tsc --skipLibCheck && cd native/compiler-native && bun run build",
|
|
25
25
|
"test": "bun test"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
@@ -46,4 +46,4 @@
|
|
|
46
46
|
"typescript": "^5.3.3",
|
|
47
47
|
"bun-types": "latest"
|
|
48
48
|
}
|
|
49
|
-
}
|
|
49
|
+
}
|