[babel 8] Remove useSpread and useBuiltIns jsx options (#12593)

* [babel 8] Remove `useSpread` and `useBuiltIns` jsx options

backport of 8cc8696851fa4bf02d7f6ae591404626d1ca32a3

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>
This commit is contained in:
Nicolò Ribaudo
2021-01-08 18:16:30 +01:00
committed by GitHub
parent 606c91cd33
commit fce3e7124a
67 changed files with 429 additions and 139 deletions

View File

@@ -0,0 +1,3 @@
{
"BABEL_8_BREAKING": true
}

View File

@@ -0,0 +1 @@
var div = <Component {...props} foo="bar" />

View File

@@ -0,0 +1,6 @@
{
"plugins": ["transform-react-jsx", ["proposal-object-rest-spread", {
"loose": true,
"useBuiltIns": false
}], "external-helpers"]
}

View File

@@ -0,0 +1,3 @@
var div = /*#__PURE__*/React.createElement(Component, babelHelpers.extends({}, props, {
foo: "bar"
}));

View File

@@ -0,0 +1 @@
var div = <Component {...props} foo="bar" />

View File

@@ -0,0 +1,6 @@
{
"plugins": ["transform-react-jsx", ["proposal-object-rest-spread", {
"loose": true,
"useBuiltIns": true
}]]
}

View File

@@ -0,0 +1,3 @@
var div = /*#__PURE__*/React.createElement(Component, Object.assign({}, props, {
foo: "bar"
}));