refactor(compiler)!: move component generation to core

This commit is contained in:
Rahim
2026-06-19 19:37:09 -07:00
parent b2c6b3489f
commit f64acdfd15
158 changed files with 2849 additions and 712 deletions
+1 -2
View File
@@ -868,8 +868,7 @@ async function processHtmlSkin(skin: HtmlSkinDef): Promise<string> {
function serializeValue(value: unknown, indent = 0): string {
if (typeof value === 'string') return JSON.stringify(value);
if (typeof value === 'function') {
// Function tokens (like `root`) — resolve with false (no shadow DOM)
return `() => ${JSON.stringify((value as (arg: boolean) => string)(false))}`;
throw new Error('Function skin tokens are not supported in ejected skins. Use static token values instead.');
}
if (typeof value === 'object' && value !== null) {
const entries = Object.entries(value as Record<string, unknown>);