Closed Sanshain closed 2 months ago
pragma and pragmaFrag cannot be set when runtime is automatic. 1 | export default "ROLLUPPREFLIGHT_CHECK_DO_NOT_TOUCH__"
Using pragme options while using "runtime:" "automatic" within @babel/transform-react-jsx. For example:
"runtime:" "automatic"
@babel/transform-react-jsx
[ "@babel/transform-react-jsx", { "pragma": "h", "pragmaFrag": "Fragment", "runtime": "automatic", "importSource": "preact" } ]
Remove pragma options from config:
pragma
[ "@babel/transform-react-jsx", { // "pragma": "h", // "pragmaFrag": "Fragment", "runtime": "automatic", "importSource": "preact" } ]
Trouble:
Reason:
Using pragme options while using
"runtime:" "automatic"
within@babel/transform-react-jsx
. For example:Solution:
Remove
pragma
options from config: