diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-08 10:50:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 10:50:32 +0200 |
commit | e26138030420c32c3c1ce9a261b5148fcbb711dd (patch) | |
tree | a570c80822ad1c34ce138d45cfcf4784d48c9b57 /webrtc | |
parent | :arrow_up: update packages (diff) | |
parent | :sparkles: bundle build script (diff) | |
download | server-e26138030420c32c3c1ce9a261b5148fcbb711dd.tar.xz |
Merge pull request #418 from TheArcaneBrony/compiler-change
Switch compiler to swc
Diffstat (limited to 'webrtc')
-rw-r--r-- | webrtc/.swcrc | 12 | ||||
-rw-r--r-- | webrtc/tsconfig.json | 2 |
2 files changed, 13 insertions, 1 deletions
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'. */ |