We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
playwright-chromium
1 parent ca85612 commit 63db02eCopy full SHA for 63db02e
packages/slidev/node/export.ts
@@ -1,6 +1,5 @@
1
import path from 'path'
2
import fs from 'fs-extra'
3
-import { chromium } from 'playwright-chromium'
4
import { PDFDocument } from 'pdf-lib'
5
import { blue, cyan, green, yellow } from 'kolorist'
6
import { Presets, SingleBar } from 'cli-progress'
@@ -65,6 +64,7 @@ export async function exportSlides({
65
64
if (!packageExists('playwright-chromium'))
66
throw new Error('The exporting for Slidev is powered by Playwright, please installed it via `npm i playwright-chromium`')
67
+ const { chromium } = await import('playwright-chromium')
68
const browser = await chromium.launch()
69
const context = await browser.newContext({
70
viewport: {
0 commit comments