diff --git a/tsconfig.base.json b/tsconfig.base.json index 84f660b..483f1c1 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -20,7 +20,7 @@ "sourceMap": true, "strict": true, "target": "es2020", - "useDefineForClassFields": true, + "useDefineForClassFields": false, "useUnknownInCatchVariables": false }, "include": ["src/**/*"] diff --git a/webpack.config.js b/webpack.config.js index cde3035..d500846 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -203,7 +203,7 @@ function getExtensionConfig(target, mode, env) { loader: 'esbuild-loader', options: { implementation: esbuild, - target: ['es2021', 'chrome102', 'node16.14.2'], + target: ['es2022', 'chrome102', 'node16.14.2'], tsconfig: path.join( __dirname, target === 'webworker' ? 'tsconfig.browser.json' : 'tsconfig.json',