fix(core): update
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user