From 3477140ee71845b4eff8283eb7c5662f03a94d1f Mon Sep 17 00:00:00 2001 From: Manuel Schiller Date: Wed, 18 Sep 2024 19:46:13 +0200 Subject: [PATCH] fix(router-plugin): do not minify code in compiler fixes #2361 --- packages/router-plugin/src/core/code-splitter/compilers.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/router-plugin/src/core/code-splitter/compilers.ts b/packages/router-plugin/src/core/code-splitter/compilers.ts index b7feabd10c..475932564d 100644 --- a/packages/router-plugin/src/core/code-splitter/compilers.ts +++ b/packages/router-plugin/src/core/code-splitter/compilers.ts @@ -236,7 +236,6 @@ export function compileCodeSplitReferenceRoute(opts: ParseAstOptions) { return generate(ast, { sourceMaps: true, - minified: process.env.NODE_ENV === 'production', }) } @@ -451,7 +450,6 @@ export function compileCodeSplitVirtualRoute(opts: ParseAstOptions) { return generate(ast, { sourceMaps: true, - minified: process.env.NODE_ENV === 'production', }) }