diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-07 09:59:04 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-07 09:59:04 +0200 |
commit | 95bb148cfa7b12588d4cd45754e14e2039bdd9a7 (patch) | |
tree | a0d97128a8cfcce095bc2d30cbb1b28000f11451 /bundle | |
parent | Compiler test (diff) | |
download | server-95bb148cfa7b12588d4cd45754e14e2039bdd9a7.tar.xz |
:bug: fix swcrc config: rewrite import -> require
Diffstat (limited to 'bundle')
-rw-r--r-- | bundle/.swcrc | 47 |
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 + } +} |