🐛 fix swc config
This commit is contained in:
+21
-22
@@ -1,23 +1,22 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
"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,
|
||||
"keepClassNames": false
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+32
-1216
File diff suppressed because it is too large
Load Diff
+2
-7
@@ -5,13 +5,8 @@
|
||||
"main": "src/start.js",
|
||||
"scripts": {
|
||||
"setup": "cd ../util && npm --production=false i && cd ../api && npm --production=false i && cd ../cdn && npm --production=false i && cd ../gateway && npm --production=false i && cd ../bundle/ && npm --production=false i && npm run build",
|
||||
"build": "npm run build:util && npm run build:api && npm run build:cdn && npm run build:gateway && npm run build:bundle",
|
||||
"postinstall": "ts-patch install -s",
|
||||
"build:bundle": "swc src --out-dir dist",
|
||||
"build:util": "cd ../util/ && npm run build",
|
||||
"build:api": "cd ../api/ && npm run build",
|
||||
"build:cdn": "cd ../cdn/ && npm run build",
|
||||
"build:gateway": "cd ../gateway/ && npm run build",
|
||||
"build": "node scripts/build.js",
|
||||
"build:bundle": "npx swc src --out-dir dist",
|
||||
"start": "npm run build && npm run start:bundle",
|
||||
"start:bundle": "node dist/start.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
{"version":"4.4.3"}
|
||||
Reference in New Issue
Block a user