fix(nuxt): pre-bundle the CommonJS deps of the markdown stack

`debug` and `extend` are imported by micromark and unified through
@elysola/ui. Served unbundled by the dev server they have no default
export, so the console page failed with a 500 in `nuxt dev`.
This commit is contained in:
翅膀 committed 2026-10-16 22:31:17 +08:00
1 parent 29b15f4933
commit fdb0c49dce
1 file changed
+6
+6
View File
@@ -37,6 +37,12 @@ export default defineNuxtConfig({
},
vite: {
plugins: [tailwindcss()],
// `debug` and `extend` are CommonJS packages @elysola/ui's markdown stack
// (micromark, unified) imports; served unbundled in dev they lack a default
// export and the console fails to start.
optimizeDeps: {
include: ["debug", "extend"],
},
},
devtools: { enabled: false },
runtimeConfig: {