[babel 8] Use the JSX automatic runtime by default (#12630)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Arun Kumar Mohan <arunmohandm@gmail.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": [["transform-react-jsx", { "pragma": "foo.bar" }]]
|
||||
"plugins": [["transform-react-jsx", { "pragma": "foo.bar", "runtime": "classic" }]]
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"plugins": [["transform-react-jsx", { "pragma": "dom" }]]
|
||||
"plugins": [["transform-react-jsx", { "pragma": "dom", "runtime": "classic" }]]
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"plugins": [
|
||||
"external-helpers",
|
||||
"syntax-jsx",
|
||||
"transform-react-jsx",
|
||||
["transform-react-jsx", { "runtime": "classic" }],
|
||||
"transform-arrow-functions"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{
|
||||
"plugins": ["transform-react-jsx", "transform-property-literals"]
|
||||
"plugins": [
|
||||
["transform-react-jsx", { "runtime": "classic" }],
|
||||
"transform-property-literals"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"transform-react-jsx",
|
||||
{
|
||||
"pragma": "h",
|
||||
"runtime": "classic",
|
||||
"throwIfNamespace": false
|
||||
}
|
||||
]
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"transform-react-jsx",
|
||||
{
|
||||
"pragma": "h",
|
||||
"runtime": "classic",
|
||||
"throwIfNamespace": true
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user