Skip to content

Commit 3744ac2

Browse files
committed
fix(build): Dropped minify from build config
- This commit removes the default minification from the Vite config. There is a funny issue with tree-shaking when the package is shipped in minified form. The minification process seems to interfere with tree-shaking (in Vite itself, btw), resulting in a larger bundle size than expected. By disabling minification, we can ensure that tree-shaking works correctly and the final bundle size is optimized.
1 parent 15b9669 commit 3744ac2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default defineConfig({
77
emptyOutDir: false,
88
outDir: 'dist',
99
sourcemap: true,
10+
minify: false,
1011
target: 'esnext',
1112
lib: {
1213
entry: {

0 commit comments

Comments
 (0)