diff --git a/webrtc/.swcrc b/webrtc/.swcrc
new file mode 100644
index 00000000..9a89b49d
--- /dev/null
+++ b/webrtc/.swcrc
@@ -0,0 +1,12 @@
+{
+ "module": {
+ "type": "commonjs"
+ },
+ "jsc": {
+ "parser": {
+ "syntax": "typescript",
+ "decorators": true
+ },
+ "target": "es2021"
+ }
+}
diff --git a/webrtc/tsconfig.json b/webrtc/tsconfig.json
index 6bf2e6b7..70631fca 100644
--- a/webrtc/tsconfig.json
+++ b/webrtc/tsconfig.json
@@ -7,7 +7,7 @@
// "incremental": true, /* Enable incremental compilation */
"target": "ESNext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
- "lib": ["ES2020"] /* Specify library files to be included in the compilation. */,
+ "lib": ["ES2021"] /* Specify library files to be included in the compilation. */,
"allowJs": true /* Allow javascript files to be compiled. */,
"checkJs": true /* Report errors in .js files. */,
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|