diff --git a/.swcrc b/.swcrc index 2fd8dd966..52bd05c50 100644 --- a/.swcrc +++ b/.swcrc @@ -1,6 +1,6 @@ { "jsc": { - "target": "es5", + "target": "es2022", "parser": { "syntax": "typescript", "tsx": false, @@ -13,7 +13,7 @@ "keepClassNames": true }, "module": { - "type": "commonjs" + "type": "es6" }, "minify": false, "sourceMaps": false diff --git a/megalodon/.swcrc b/megalodon/.swcrc index 2fd8dd966..52bd05c50 100644 --- a/megalodon/.swcrc +++ b/megalodon/.swcrc @@ -1,6 +1,6 @@ { "jsc": { - "target": "es5", + "target": "es2022", "parser": { "syntax": "typescript", "tsx": false, @@ -13,7 +13,7 @@ "keepClassNames": true }, "module": { - "type": "commonjs" + "type": "es6" }, "minify": false, "sourceMaps": false