fix: hljs 优化导入

This commit is contained in:
Tim
2025-08-19 21:24:27 +08:00
parent 2d87c8f23d
commit e9458f5419

View File

@@ -1,4 +1,5 @@
import hljs from 'highlight.js'
import hljs from 'highlight.js/lib/common'
if (typeof window !== 'undefined') {
const theme =
document.documentElement.dataset.theme ||