Add experimental version of the `babel-plugin-transform-react-… (#11154)

* add next option for babel-plugin-transform-react-jsx

* address review comments

* chore: update test fixtures

* Update fixture

* Add "columnNumber" to the new React transform

* Update windows fixtures

* Delete unused output.js

* Update windows tests

* Fix windows again

* fix comments

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Moti Zilberman <motiz88@gmail.com>
This commit is contained in:
Luna Ruan
2020-03-17 01:16:53 -07:00
committed by GitHub
parent 10aa97bc10
commit 748897be07
337 changed files with 3311 additions and 105 deletions

View File

@@ -0,0 +1 @@
var x = (<div><span /></div>);

View File

@@ -0,0 +1,10 @@
{
"plugins": [
[
"transform-react-jsx",
{
"runtime": "automatic"
}
]
]
}

View File

@@ -0,0 +1,5 @@
var _reactJsxRuntime = require("react/jsx-runtime");
var x = _reactJsxRuntime.jsx("div", {
children: _reactJsxRuntime.jsx("span", {})
});