diff --git a/src/rollup/config.ts b/src/rollup/config.ts index 5bafda9527..e5d08425e3 100644 --- a/src/rollup/config.ts +++ b/src/rollup/config.ts @@ -48,10 +48,13 @@ export const getRollupConfig = (nitro: Nitro): RollupConfig => { const builtinPreset: Preset = { alias: { // General - "consola/core": "consola/core", - consola: "unenv/runtime/npm/consola", - // only mock debug in production - ...(nitro.options.dev ? {} : { debug: "unenv/runtime/npm/debug" }), + ...(nitro.options.dev + ? {} + : { + debug: "unenv/runtime/npm/debug", + "consola/core": "consola/core", + consola: "unenv/runtime/npm/consola", + }), ...nitro.options.alias, }, };