Skip to content

Commit

Permalink
fix: #359
Browse files Browse the repository at this point in the history
use esbuild `supported` config to transform
the optional catch binding syntax.
  • Loading branch information
Sec-ant authored and gruhn committed Aug 26, 2023
1 parent ca154de commit ee7a6e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'

export default defineConfig({
esbuild: {
supported: {
'optional-catch-binding': false
}
},
build: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),
Expand Down

0 comments on commit ee7a6e7

Please sign in to comment.