Skip to content

Commit 8bbb4c4

Browse files
committed
fix: update build target to es2018 to retain parentheses in try-catch statements
1 parent 84006c5 commit 8bbb4c4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vite.base.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const baseBuildConfig = defineConfig({
1313
build: {
1414
outDir: path.resolve(__dirname, `./dist/${isVue2 ? 'v2' : 'v3'}`),
1515
emptyOutDir: false,
16+
target: 'es2018',
1617
lib: {
1718
entry: path.resolve(__dirname, 'src/index.ts'),
1819
formats: ['es', 'cjs'],

0 commit comments

Comments
 (0)