fix(core): update

This commit is contained in:
2021-01-08 22:08:01 +00:00
parent 446b4c38ea
commit acba539a6f
4 changed files with 18 additions and 6 deletions

View File

@ -66,7 +66,6 @@ export class SmartSSR {
const renderedPageString = pageContent;
resultDeferred.resolve(renderedPageString);
const result = await resultDeferred.promise;
renderTimeMeasurement.stop();

View File

@ -47,11 +47,12 @@ export function serializeFunction(rootNode) {
slotsForMove.push(slot);
});
for (const slot of slotsForMove) {
const slottedLightNodesForMove = [];
slot.assignedNodes().forEach((lightNode) => slottedLightNodesForMove.push(lightNode));
slottedLightNodesForMove.forEach((lightNode) => slot.parentNode.insertBefore(lightNode, slot));
slottedLightNodesForMove.forEach((lightNode) =>
slot.parentNode.insertBefore(lightNode, slot)
);
}
// lets modify the css