diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 8e91675..a41f12f 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -16,7 +16,7 @@ const context = await esbuild.context({ bundle: true, platform: 'node', format: 'cjs', - target: 'es2020', + target: 'es2022', external, sourcemap: production ? false : 'inline', treeShaking: true, diff --git a/tsconfig.json b/tsconfig.json index 8bf43d2..6f423cc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "baseUrl": ".", - "target": "ES2020", + "target": "ES2022", "module": "CommonJS", "moduleResolution": "Node", "lib": ["ES2022", "DOM"],