Skip to content

Commit

Permalink
fix: export deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 29, 2021
1 parent 21c2758 commit fd7fc6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/slidev/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import sirv from 'sirv'
import { ViteSlidevPlugin } from './plugins/preset'
import { getIndexHtml } from './common'
import { ResolvedSlidevOptions, SlidevPluginOptions } from './plugins/options'
import { exportSlides } from './export'

export async function build(
options: ResolvedSlidevOptions,
Expand Down Expand Up @@ -41,6 +40,8 @@ export async function build(
}

if (options.data.config.download === true || options.data.config.download === 'auto') {
const { exportSlides } = await import('./export')

const port = 12445
const app = connect()
const server = http.createServer(app)
Expand Down

0 comments on commit fd7fc6f

Please sign in to comment.