summary refs log tree commit diff
path: root/bundle
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-07 09:59:04 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-07 09:59:04 +0200
commit95bb148cfa7b12588d4cd45754e14e2039bdd9a7 (patch)
treea0d97128a8cfcce095bc2d30cbb1b28000f11451 /bundle
parentCompiler test (diff)
downloadserver-95bb148cfa7b12588d4cd45754e14e2039bdd9a7.tar.xz
:bug: fix swcrc config: rewrite import -> require
Diffstat (limited to 'bundle')
-rw-r--r--bundle/.swcrc47
1 files changed, 25 insertions, 22 deletions
diff --git a/bundle/.swcrc b/bundle/.swcrc
index dcf4af8e..d1689115 100644
--- a/bundle/.swcrc
+++ b/bundle/.swcrc
@@ -1,23 +1,26 @@
 {
-    "jsc": {
-      "parser": {
-        "syntax": "ecmascript",
-        "jsx": false,
-        "dynamicImport": false,
-        "privateMethod": false,
-        "functionBind": false,
-        "exportDefaultFrom": false,
-        "exportNamespaceFrom": false,
-        "decorators": false,
-        "decoratorsBeforeExport": false,
-        "topLevelAwait": false,
-        "importMeta": false
-      },
-      "transform": null,
-      "target": "es2021",
-      "loose": false,
-      "externalHelpers": false,
-      // Requires v1.2.50 or upper and requires target to be es2016 or upper.
-      "keepClassNames": false
-    }
-  }
\ No newline at end of file
+	"module": {
+		"type": "commonjs"
+	},
+	"jsc": {
+		"parser": {
+			"syntax": "ecmascript",
+			"jsx": false,
+			"dynamicImport": false,
+			"privateMethod": false,
+			"functionBind": false,
+			"exportDefaultFrom": false,
+			"exportNamespaceFrom": false,
+			"decorators": false,
+			"decoratorsBeforeExport": false,
+			"topLevelAwait": false,
+			"importMeta": false
+		},
+		"transform": null,
+		"target": "es2021",
+		"loose": false,
+		"externalHelpers": false,
+		// Requires v1.2.50 or upper and requires target to be es2016 or upper.
+		"keepClassNames": false
+	}
+}