From e3a562fac50cee1b72073ee65325b078896e3502 Mon Sep 17 00:00:00 2001 From: 0age <37939117+0age@users.noreply.github.com> Date: Wed, 11 Dec 2024 14:41:37 -0800 Subject: [PATCH] back off a few more aggressive bundle optimizations --- frontend/vite.config.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 4e98467..247b353 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -44,12 +44,6 @@ export default defineConfig(({ mode }) => { drop_console: true, drop_debugger: true, pure_getters: true, - unsafe: true, - unsafe_comps: true, - unsafe_math: true, - unsafe_methods: true, - unsafe_proto: true, - unsafe_regexp: true, passes: 3, module: true, toplevel: true, @@ -62,13 +56,6 @@ export default defineConfig(({ mode }) => { hoist_props: true, join_vars: true }, - mangle: { - properties: false, - module: true, - toplevel: true, - keep_classnames: false, - keep_fnames: false - }, format: { comments: false, preserve_annotations: false, @@ -77,9 +64,8 @@ export default defineConfig(({ mode }) => { indent_level: 0 } }, - chunkSizeWarningLimit: 500, + chunkSizeWarningLimit: 375, reportCompressedSize: true, - sourcemap: false, cssCodeSplit: true, rollupOptions: { output: { @@ -190,7 +176,6 @@ export default defineConfig(({ mode }) => { } }, compact: true, - minifyInternalExports: true, generatedCode: { preset: 'es2015', symbols: false,