From 05f3decfa9d619f43aaf1956874332440ea1c57f Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Wed, 7 Jun 2023 15:11:59 +0200 Subject: [PATCH] fix(nuxt): avoid early returning renderer with empty response (#21439) --- packages/nuxt/src/core/runtime/nitro/renderer.ts | 5 ----- test/bundle.test.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/nuxt/src/core/runtime/nitro/renderer.ts b/packages/nuxt/src/core/runtime/nitro/renderer.ts index 02ed61eae6..1e1b21d1c4 100644 --- a/packages/nuxt/src/core/runtime/nitro/renderer.ts +++ b/packages/nuxt/src/core/runtime/nitro/renderer.ts @@ -259,11 +259,6 @@ export default defineRenderHandler(async (event): Promise { stats.server = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir) - expect(roundToKilobytes(stats.server.totalBytes)).toMatchInlineSnapshot('"62.8k"') + expect(roundToKilobytes(stats.server.totalBytes)).toMatchInlineSnapshot('"62.7k"') const modules = await analyzeSizes('node_modules/**/*', serverDir) expect(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"2286k"')