[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:
Nicolò Ribaudo
2021-01-19 01:41:07 +01:00
committed by GitHub
parent 6e8250a3a6
commit 10978bb65a
103 changed files with 217 additions and 93 deletions

View File

@@ -1,3 +1,3 @@
{
"plugins": [["transform-react-jsx", { "pragma": "foo.bar" }]]
"plugins": [["transform-react-jsx", { "pragma": "foo.bar", "runtime": "classic" }]]
}

View File

@@ -1,3 +1,3 @@
{
"plugins": [["transform-react-jsx", { "pragma": "dom" }]]
"plugins": [["transform-react-jsx", { "pragma": "dom", "runtime": "classic" }]]
}

View File

@@ -2,7 +2,7 @@
"plugins": [
"external-helpers",
"syntax-jsx",
"transform-react-jsx",
["transform-react-jsx", { "runtime": "classic" }],
"transform-arrow-functions"
]
}

View File

@@ -1,3 +1,6 @@
{
"plugins": ["transform-react-jsx", "transform-property-literals"]
"plugins": [
["transform-react-jsx", { "runtime": "classic" }],
"transform-property-literals"
]
}

View File

@@ -4,6 +4,7 @@
"transform-react-jsx",
{
"pragma": "h",
"runtime": "classic",
"throwIfNamespace": false
}
]

View File

@@ -4,6 +4,7 @@
"transform-react-jsx",
{
"pragma": "h",
"runtime": "classic",
"throwIfNamespace": true
}
]