Skip to content

Commit 5e26c8d

Browse files
committed
build(extension): Configure terser options in vite config
1 parent ff4ff71 commit 5e26c8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extension/vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ function generateManifest() {
1515

1616
// https://vitejs.dev/config/
1717
export default defineConfig({
18+
build: {
19+
minify: 'terser',
20+
terserOptions: {
21+
keep_fnames: true,
22+
},
23+
},
1824
plugins: [
1925
react(),
2026
webExtension({

0 commit comments

Comments
 (0)