* [transform-react-jsx] Add useSpread option to transform JSX * Add validation for default option * Add error when using useSpread and useBuiltIns at the same time * Move useSpread to convertAttribute helper function * Add useSpread option to presect-react * Remove casting useSpread to boolean in preset-react option. Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
7 lines
191 B
JSON
7 lines
191 B
JSON
{
|
|
"plugins": [
|
|
["transform-react-jsx", { "useSpread": true, "useBuiltIns": true }]
|
|
],
|
|
"throws": "transform-react-jsx currently only accepts useBuiltIns or useSpread but not both"
|
|
}
|