@wiajs/ui
Version:
wia app ui packages
65 lines (64 loc) • 1.77 kB
Plain Text
[
{
"$schema": "https://json.schemastore.org/swcrc",
"test": "\\.(js|jsx|mjs|cjs)$",
"jsc": {
"parser": {
"syntax": "ecmascript", // "typescript"
"jsx": true,
"dynamicImport": false,
"privateMethod": true,
"functionBind": false,
"exportDefaultFrom": false,
"exportNamespaceFrom": false,
"decorators": false,
"decoratorsBeforeExport": false,
"topLevelAwait": false,
"importMeta": false
},
"transform": {
"react": {
"runtime": "automatic", // or classic
"throwIfNamespace": true,
"useBuiltins": false,
"development": false
},
"decoratorVersion": "2022-03" // "2021-12" (default)
},
"target": "es2022", // es5,es6,es2020,es2021,es2022
"loose": true,
"externalHelpers": false,
"keepClassNames": true // 保留原始类名
},
"module": {
"type": "es6" // 输出模块类型 "es6", "commonjs"
},
"minify": false, // 压缩代码
"sourceMaps": false
},
{
"$schema": "https://json.schemastore.org/swcrc",
"test": "\\.(ts|tsx)$",
"exclude": [".*\\.map$"],
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false,
"decorators": true,
"dynamicImport": false
},
"transform": {
"decoratorVersion": "2022-03"
},
"target": "es2022", // es5,es6,es2020,es2021,es2022
"loose": true,
"externalHelpers": false,
"keepClassNames": true // 保留原始类名
},
"module": {
"type": "commonjs"
},
"minify": false, // 压缩代码
"sourceMaps": false
}
]