swet
swet copied to clipboard
Class NOT SUPPORT IN ES3
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch @swet/[email protected] for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/@swet/cli/lib/utils/index.js b/node_modules/@swet/cli/lib/utils/index.js
index de3b799..c9a5095 100644
--- a/node_modules/@swet/cli/lib/utils/index.js
+++ b/node_modules/@swet/cli/lib/utils/index.js
@@ -51,7 +51,7 @@ function loadFile(path2) {
jsResult = (0, import_typescript.transpileModule)(fileResult, {
compilerOptions: {
moduleResolution: import_typescript.ModuleResolutionKind.NodeJs,
- target: import_typescript.ScriptTarget.ES3,
+ target: import_typescript.ScriptTarget.ES2015,
module: import_typescript.ModuleKind.CommonJS,
strict: true,
allowSyntheticDefaultImports: true,
This issue body was partially generated by patch-package.