fix: dispose mdit instance on manual restart too

pull/4323/head
Divyansh Singh 4 weeks ago
parent 45968cdc50
commit acfe97f608

@ -1,6 +1,7 @@
import type { ViteDevServer } from 'vite'
import c from 'picocolors'
import { clearCache } from './markdownToVue'
import { disposeMdItInstance } from './markdown/markdown'
type CreateDevServer = () => Promise<void>
@ -81,6 +82,7 @@ const SHORTCUTS: CLIShortcut[] = [
clear: true,
timestamp: true
})
disposeMdItInstance()
clearCache()
await server.close()
await createDevServer()

Loading…
Cancel
Save