pokemon-showdown-client/.babelrc
Guangcong Luo 26f78dcce6 Add Preact dependency
Preact is currently unused in the client, but will be used in an
upcoming rewrite. This adds the foundation to support `.tsx` files in
`src/`.
2018-10-16 14:53:27 -05:00

34 lines
1.2 KiB
Plaintext

{
"plugins": [
["@babel/plugin-transform-typescript", {"isTSX": true}],
["@babel/plugin-transform-react-jsx", {"pragma": "preact.h", "useBuiltIns": true}],
["@babel/plugin-proposal-class-properties", {"loose": true}],
["@babel/plugin-proposal-object-rest-spread", {"loose": true, "useBuiltIns": true}],
"@babel/plugin-transform-exponentiation-operator",
"@babel/plugin-transform-arrow-functions",
["@babel/plugin-transform-block-scoping", {"throwIfClosureRequired": true}],
["@babel/plugin-transform-classes", {"loose": true}],
["@babel/plugin-transform-computed-properties", {"loose": true}],
["@babel/plugin-transform-destructuring", {"loose": true, "useBuiltIns": true}],
["@babel/plugin-transform-for-of", {"assumeArray": true}],
"@babel/plugin-transform-literals",
"@babel/plugin-transform-parameters",
"@babel/plugin-transform-shorthand-properties",
["@babel/plugin-transform-spread", {"loose": true}],
["@babel/plugin-transform-template-literals", {"loose": true}],
"@babel/plugin-transform-member-expression-literals",
"@babel/plugin-transform-property-literals"
],
"ignore": [
"src/globals.d.ts"
],
"compact": true,
"comments": false,
"retainLines": true
}