fix(core): update
This commit is contained in:
parent
567507c88b
commit
6ddfaffbff
@ -10,7 +10,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(tstest test/ --web)",
|
"test": "(tstest test/ --web)",
|
||||||
"build": "(tsbuild --web)",
|
"build": "(tsbuild --web)",
|
||||||
"format": "(gitzone format)"
|
"serve": "tsrun scripts/serve.ts"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.25",
|
||||||
|
@ -14,7 +14,7 @@ tap.test('should start the smartssr instance', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should render central.eu', async (tools) => {
|
tap.test('should render central.eu', async (tools) => {
|
||||||
await testSSRInstance.renderPage('https://in.work');
|
await testSSRInstance.renderPage('https://lossless.com');
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.skip.test('should render lossless.com', async () => {
|
tap.skip.test('should render lossless.com', async () => {
|
||||||
|
@ -63,10 +63,12 @@ export function serializeFunction(rootNode) {
|
|||||||
const noteForAppending: HTMLElement[] = [];
|
const noteForAppending: HTMLElement[] = [];
|
||||||
|
|
||||||
// lets care about static css first
|
// lets care about static css first
|
||||||
if ((nodeArg.constructor as any).styles?.cssText) {
|
if ((nodeArg.constructor as any).styles && (nodeArg.constructor as any).styles instanceof Array) {
|
||||||
const styleTag = document.createElement('style');
|
for (const objectArg of (nodeArg.constructor as any).styles) {
|
||||||
styleTag.textContent = prependCss(nodeUUID, (nodeArg.constructor as any).styles.cssText);
|
const styleTag = document.createElement('style');
|
||||||
noteForAppending.push(styleTag);
|
styleTag.textContent = prependCss(nodeUUID, objectArg.cssText);
|
||||||
|
noteForAppending.push(styleTag);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
childNodes.forEach((childNode) => {
|
childNodes.forEach((childNode) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user