Skip to content

Commit acfe97f

Browse files
committedOct 29, 2024·
fix: dispose mdit instance on manual restart too
1 parent 45968cd commit acfe97f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/node/shortcuts.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { ViteDevServer } from 'vite'
22
import c from 'picocolors'
33
import { clearCache } from './markdownToVue'
4+
import { disposeMdItInstance } from './markdown/markdown'
45

56
type CreateDevServer = () => Promise<void>
67

@@ -81,6 +82,7 @@ const SHORTCUTS: CLIShortcut[] = [
8182
clear: true,
8283
timestamp: true
8384
})
85+
disposeMdItInstance()
8486
clearCache()
8587
await server.close()
8688
await createDevServer()

0 commit comments

Comments
 (0)
Please sign in to comment.