fix auto import error with whitespace JSXText (#11354)
This commit is contained in:
5
packages/babel-plugin-transform-react-jsx/test/fixtures/nextReact/weird-symbols/input.js
vendored
Normal file
5
packages/babel-plugin-transform-react-jsx/test/fixtures/nextReact/weird-symbols/input.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
class MobileHomeActivityTaskPriorityIcon extends React.PureComponent {
|
||||
render() {
|
||||
return <Text> {this.props.value} </Text>;
|
||||
}
|
||||
}
|
||||
10
packages/babel-plugin-transform-react-jsx/test/fixtures/nextReact/weird-symbols/output.mjs
vendored
Normal file
10
packages/babel-plugin-transform-react-jsx/test/fixtures/nextReact/weird-symbols/output.mjs
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
|
||||
class MobileHomeActivityTaskPriorityIcon extends React.PureComponent {
|
||||
render() {
|
||||
return /*#__PURE__*/_jsxs(Text, {
|
||||
children: ["\xA0", this.props.value, "\xA0"]
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/** @jsxRuntime classic */
|
||||
|
||||
class MobileHomeActivityTaskPriorityIcon extends React.PureComponent {
|
||||
render() {
|
||||
return <Text> {this.props.value} </Text>;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/** @jsxRuntime classic */
|
||||
class MobileHomeActivityTaskPriorityIcon extends React.PureComponent {
|
||||
render() {
|
||||
return /*#__PURE__*/React.createElement(Text, null, "\xA0", this.props.value, "\xA0");
|
||||
}
|
||||
|
||||
}
|
||||
7
packages/babel-plugin-transform-react-jsx/test/fixtures/react/weird-symbols/input.js
vendored
Normal file
7
packages/babel-plugin-transform-react-jsx/test/fixtures/react/weird-symbols/input.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/** @jsxRuntime classic */
|
||||
|
||||
class MobileHomeActivityTaskPriorityIcon extends React.PureComponent {
|
||||
render() {
|
||||
return <Text> {this.props.value} </Text>;
|
||||
}
|
||||
}
|
||||
7
packages/babel-plugin-transform-react-jsx/test/fixtures/react/weird-symbols/output.js
vendored
Normal file
7
packages/babel-plugin-transform-react-jsx/test/fixtures/react/weird-symbols/output.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/** @jsxRuntime classic */
|
||||
class MobileHomeActivityTaskPriorityIcon extends React.PureComponent {
|
||||
render() {
|
||||
return /*#__PURE__*/React.createElement(Text, null, "\xA0", this.props.value, "\xA0");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user