pokemon-showdown-client/.babelrc
Guangcong Luo 04a5454f6e Support login handshake
You can't actually log in through the Preact client anyway, but now
if you set the right config file, you can _be_ logged in.
2019-03-17 19:02:53 +09:00

35 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-proposal-optional-catch-binding",
"@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
}