forked from formatjs/formatjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swcrc
More file actions
30 lines (30 loc) · 677 Bytes
/
.swcrc
File metadata and controls
30 lines (30 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// The default (lowest build target) transpilation settings.
{
"$schema": "https://json.schemastore.org/swcrc",
"sourceMaps": false,
"module": {
// To match the tsc output.
"strictMode": false,
"type": "commonjs",
"noInterop": false
},
"jsc": {
"externalHelpers": true,
"target": "es5",
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": false,
"dynamicImport": true
},
"transform": {
"react": {
"throwIfNamespace": false,
"useBuiltins": false,
"pragma": "React.createElement",
"pragmaFrag": "React.Fragment"
}
},
"keepClassNames": false
}
}