1 files changed, 17 insertions, 8 deletions
diff --git a/util/.swcrc b/util/.swcrc
index f04801b8..a723d37f 100644
--- a/util/.swcrc
+++ b/util/.swcrc
@@ -1,9 +1,18 @@
{
- "jsc": {
- "parser": {
- "syntax": "typescript",
- "decorators": true
- },
- "target": "es2021"
- }
-}
\ No newline at end of file
+ "module": {
+ "type": "commonjs"
+ },
+ "jsc": {
+ "parser": {
+ "syntax": "typescript",
+ "decorators": true
+ },
+ "target": "es2021",
+ "transform": {
+ "legacyDecorator": true,
+ "decoratorMetadata": true
+ },
+ "keepClassNames": true,
+ "loose": true
+ }
+}
|