mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
f1900da246
FIx preset-env and better error message for invalid config
33 lines
518 B
Plaintext
33 lines
518 B
Plaintext
{
|
|
"module": {
|
|
"type": "commonjs"
|
|
},
|
|
"env": {
|
|
"targets": {
|
|
"chrome": "79",
|
|
"ie": "11",
|
|
"safari": "11.1"
|
|
},
|
|
"mode": "entry",
|
|
"coreJs": 3
|
|
},
|
|
"jsc": {
|
|
"parser": {
|
|
"syntax": "typescript",
|
|
"tsx": true,
|
|
"decorators": true,
|
|
"dynamicImport": true
|
|
},
|
|
"target": "es2019",
|
|
"loose": true,
|
|
"transform": {
|
|
"optimizer": {
|
|
"globals": {
|
|
"vars": {
|
|
"__DEBUG__": "true"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |