mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
76de51333d
swc_common: - Add `NoopComments`. - Implement `Comments` for `Option<C>` where C: `Comments`. - Add some helper methods to `Comments`. - Deprecate `CommentsExt`. swc_ecma_transforms_base: - `resolver`: Handle `TsImportEqualsDecl`. swc_ecma_transforms_react: - Reduce useless cloning using `Arc`. - Expose API for parsing directives like `@jsxPragma`. swc_ecma_transforms_typescript: - Accept `pragma` and `pragmaFrag`. - Support jsx directives. - Preserve jsx-related imports. swc: - Optimize `SwcComments`. - Run`resolver` before everything else.
13 lines
213 B
Plaintext
13 lines
213 B
Plaintext
{
|
|
"jsc": {
|
|
"parser": {
|
|
"syntax": "typescript",
|
|
"tsx": true
|
|
},
|
|
"transform": {
|
|
"react": {
|
|
"pragma": "h"
|
|
}
|
|
}
|
|
}
|
|
} |