From 36d460cd74bedb069bdb194962a4f4073797754e Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 9 May 2025 00:04:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Vite=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E5=90=AF=E7=94=A8=E5=8E=8B=E7=BC=A9=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E4=BB=A5=E7=A7=BB=E9=99=A4=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E5=92=8C=E8=B0=83=E8=AF=95=E5=99=A8=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index a62fb4af..0626b4d3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,6 +35,7 @@ export default defineConfig({ federation({ name: 'MoviePilot', filename: 'remoteEntry.js', + // @ts-ignore remotes: { // 动态remotes将在运行时注入 dummy: { @@ -171,8 +172,8 @@ export default defineConfig({ minify: 'terser', terserOptions: { compress: { - drop_console: false, - drop_debugger: false, + drop_console: true, + drop_debugger: true, }, }, chunkSizeWarningLimit: 5000,