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:
1
packages/babel-plugin-transform-react-jsx/test/fixtures/runtime/runtime-automatic/input.js
vendored
Normal file
1
packages/babel-plugin-transform-react-jsx/test/fixtures/runtime/runtime-automatic/input.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var x = (<div><span /></div>);
|
||||
10
packages/babel-plugin-transform-react-jsx/test/fixtures/runtime/runtime-automatic/options.json
vendored
Normal file
10
packages/babel-plugin-transform-react-jsx/test/fixtures/runtime/runtime-automatic/options.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"plugins": [
|
||||
[
|
||||
"transform-react-jsx",
|
||||
{
|
||||
"runtime": "automatic"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
5
packages/babel-plugin-transform-react-jsx/test/fixtures/runtime/runtime-automatic/output.js
vendored
Normal file
5
packages/babel-plugin-transform-react-jsx/test/fixtures/runtime/runtime-automatic/output.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var _reactJsxRuntime = require("react/jsx-runtime");
|
||||
|
||||
var x = _reactJsxRuntime.jsx("div", {
|
||||
children: _reactJsxRuntime.jsx("span", {})
|
||||
});
|
||||
Reference in New Issue
Block a user