Skip to content

Commit f15d31a

Browse files
committed
fix: missing await for async funtion
1 parent 97d8df9 commit f15d31a

File tree

1 file changed

+2
-2
lines changed
  • packages/@vuepress/core/lib

1 file changed

+2
-2
lines changed

Diff for: packages/@vuepress/core/lib/dev.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

3-
module.exports = (sourceDir, cliOptions = {}, ctx) => {
4-
const { server, host, port } = prepareServer(sourceDir, cliOptions, ctx)
3+
module.exports = async (sourceDir, cliOptions = {}, ctx) => {
4+
const { server, host, port } = await prepareServer(sourceDir, cliOptions, ctx)
55
server.listen(port, host, err => {
66
if (err) {
77
console.log(err)

0 commit comments

Comments
 (0)