Skip to content

Commit ee7a6e7

Browse files
Sec-antgruhn
authored andcommitted
fix: #359
use esbuild `supported` config to transform the optional catch binding syntax.
1 parent ca154de commit ee7a6e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import { defineConfig } from 'vite'
55
import dts from 'vite-plugin-dts'
66

77
export default defineConfig({
8+
esbuild: {
9+
supported: {
10+
'optional-catch-binding': false
11+
}
12+
},
813
build: {
914
lib: {
1015
entry: resolve(__dirname, 'src/index.ts'),

0 commit comments

Comments
 (0)