Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [babel 8] Remove `useSpread` and `useBuiltIns` jsx options backport of 8cc8696 Co-authored-by: Nicol貌 Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Brian Ng <bng412@gmail.com> * Update fixtures (Windows) Co-authored-by: Hu谩ng J霉nli脿ng <jlhwung@gmail.com> Co-authored-by: Brian Ng <bng412@gmail.com> Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
- Loading branch information
1 parent
606c91c
commit fce3e71
Showing
67 changed files
with
424 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ugin-transform-react-jsx-development/test/fixtures/linux/classic-runtime-babel-7/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var x = ( | ||
<> | ||
<div> | ||
<div key="1" /> | ||
<div key="2" meow="wolf" /> | ||
<div key="3" /> | ||
<div {...props} key="4" /> | ||
</div> | ||
</> | ||
); |
5 changes: 5 additions & 0 deletions
5
...-transform-react-jsx-development/test/fixtures/linux/classic-runtime-babel-7/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"BABEL_8_BREAKING": false, | ||
"plugins": [["transform-react-jsx-development", { "runtime": "classic" }]], | ||
"os": ["linux", "darwin"] | ||
} |
45 changes: 45 additions & 0 deletions
45
...gin-transform-react-jsx-development/test/fixtures/linux/classic-runtime-babel-7/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
var _jsxFileName = "<CWD>/packages/babel-plugin-transform-react-jsx-development/test/fixtures/linux/classic-runtime-babel-7/input.js"; | ||
|
||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
|
||
var x = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { | ||
__self: this, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 3, | ||
columnNumber: 5 | ||
} | ||
}, /*#__PURE__*/React.createElement("div", { | ||
key: "1", | ||
__self: this, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 4, | ||
columnNumber: 9 | ||
} | ||
}), /*#__PURE__*/React.createElement("div", { | ||
key: "2", | ||
meow: "wolf", | ||
__self: this, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 5, | ||
columnNumber: 9 | ||
} | ||
}), /*#__PURE__*/React.createElement("div", { | ||
key: "3", | ||
__self: this, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 6, | ||
columnNumber: 9 | ||
} | ||
}), /*#__PURE__*/React.createElement("div", _extends({}, props, { | ||
key: "4", | ||
__self: this, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 7, | ||
columnNumber: 9 | ||
} | ||
})))); |
1 change: 1 addition & 0 deletions
1
...l-plugin-transform-react-jsx-development/test/fixtures/linux/classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"BABEL_8_BREAKING": true, | ||
"plugins": [["transform-react-jsx-development", { "runtime": "classic" }]], | ||
"os": ["linux", "darwin"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...form-react-jsx-development/test/fixtures/windows/classic-runtime-windows-babel-7/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var x = ( | ||
<> | ||
<div> | ||
<div key="1" /> | ||
<div key="2" meow="wolf" /> | ||
<div key="3" /> | ||
<div {...props} key="4" /> | ||
</div> | ||
</> | ||
); |
4 changes: 4 additions & 0 deletions
4
...-react-jsx-development/test/fixtures/windows/classic-runtime-windows-babel-7/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"BABEL_8_BREAKING": false, | ||
"plugins": [["transform-react-jsx-development", { "runtime": "classic" }]] | ||
} |
45 changes: 45 additions & 0 deletions
45
...orm-react-jsx-development/test/fixtures/windows/classic-runtime-windows-babel-7/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
var _jsxFileName = "<CWD>\\packages\\babel-plugin-transform-react-jsx-development\\test\\fixtures\\windows\\classic-runtime-windows-babel-7\\input.js"; | ||
|
||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
|
||
var x = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", { | ||
__self: this, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 3, | ||
columnNumber: 5 | ||
} | ||
}, /*#__PURE__*/React.createElement("div", { | ||
key: "1", | ||
__self: this, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 4, | ||
columnNumber: 7 | ||
} | ||
}), /*#__PURE__*/React.createElement("div", { | ||
key: "2", | ||
meow: "wolf", | ||
__self: this, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 5, | ||
columnNumber: 7 | ||
} | ||
}), /*#__PURE__*/React.createElement("div", { | ||
key: "3", | ||
__self: this, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 6, | ||
columnNumber: 7 | ||
} | ||
}), /*#__PURE__*/React.createElement("div", _extends({}, props, { | ||
key: "4", | ||
__self: this, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 7, | ||
columnNumber: 7 | ||
} | ||
})))); |
1 change: 1 addition & 0 deletions
1
...ransform-react-jsx-development/test/fixtures/windows/classic-runtime-windows/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"BABEL_8_BREAKING": true, | ||
"plugins": [["transform-react-jsx-development", { "runtime": "classic" }]] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.