fix(core): update

This commit is contained in:
2023-05-01 14:38:53 +02:00
parent cc5f93305b
commit e87833c59f
15 changed files with 4538 additions and 26593 deletions

View File

@@ -1,7 +1,7 @@
import * as plugins from './smartssr.plugins';
import * as paths from './smartssr.paths';
import * as plugins from './smartssr.plugins.js';
import * as paths from './smartssr.paths.js';
import { serializeFunction } from './smartssr.function.serialize';
import { serializeFunction } from './smartssr.function.serialize.js';
export interface ISmartSSROptions {
debug: boolean;
@@ -53,9 +53,9 @@ export class SmartSSR {
});
if (this.options.debug) {
screenshotBuffer = await page.screenshot({
screenshotBuffer = (await page.screenshot({
encoding: 'binary',
}) as Buffer;
})) as Buffer;
}
await page.$eval('body', serializeFunction);