From 95bb148cfa7b12588d4cd45754e14e2039bdd9a7 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Thu, 7 Oct 2021 09:59:04 +0200 Subject: :bug: fix swcrc config: rewrite import -> require --- bundle/.swcrc | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) (limited to 'bundle') 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 + } +} -- cgit 1.5.1