mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
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:
1 parent
29b15f4933
commit
fdb0c49dce
1 file changed
+6
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user