diff --git a/gateway/.swcrc b/gateway/.swcrc
index 3079a89f..e8cbb8a1 100644
--- a/gateway/.swcrc
+++ b/gateway/.swcrc
@@ -7,11 +7,10 @@
"syntax": "typescript",
"decorators": true
},
- "target": "es2021",
+ "target": "es5",
"baseUrl": ".",
"paths": {
- "@fosscord/gateway": ["src/index"],
- "@fosscord/gateway/*": ["src/*"]
+ "@fosscord/gateway": ["src/index"]
}
}
}
diff --git a/gateway/package-lock.json b/gateway/package-lock.json
index 38962a2a..07ae02f9 100644
--- a/gateway/package-lock.json
+++ b/gateway/package-lock.json
@@ -65,7 +65,6 @@
"pg": "^8.7.1",
"reflect-metadata": "^0.1.13",
"sqlite3": "^5.0.2",
- "swc": "^1.0.11",
"tsconfig-paths": "^3.11.0",
"typeorm": "^0.2.37",
"typescript": "^4.4.2",
@@ -10094,7 +10093,6 @@
"pg": "^8.7.1",
"reflect-metadata": "^0.1.13",
"sqlite3": "^5.0.2",
- "swc": "^1.0.11",
"tsconfig-paths": "^3.11.0",
"typeorm": "^0.2.37",
"typescript": "^4.4.2",
diff --git a/gateway/tsconfig.json b/gateway/tsconfig.json
index e2ac5b0b..2ad38f93 100644
--- a/gateway/tsconfig.json
+++ b/gateway/tsconfig.json
@@ -5,7 +5,7 @@
/* Visit https://aka.ms/tsconfig.json to read more about this file */
/* Basic Options */
- "incremental": true, /* Enable incremental compilation */
+ "incremental": true /* Enable incremental compilation */,
"target": "ES2020" /* 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": ["ES2015", "ES2020.BigInt", "DOM"] /* Specify library files to be included in the compilation. */,
@@ -70,7 +70,7 @@
"resolveJsonModule": true,
"baseUrl": ".",
"paths": {
- "@fosscord/gateway": ["src/index"],
+ "@fosscord/gateway": ["src/index.ts"],
"@fosscord/gateway/*": ["src/*"]
},
"plugins": [{ "transform": "@zerollup/ts-transform-paths" }]
|