babel-plugin-react-compiler 0.0.0-experimental-16e4ce7-20241209 → 0.0.0-experimental-179bb06-20241211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -141732,15 +141732,14 @@ function createPropsProperties(
|
|
141732
141732
|
let refProperty;
|
141733
141733
|
let keyProperty;
|
141734
141734
|
const props = [];
|
141735
|
-
const
|
141736
|
-
p => p.kind === 'JsxAttribute' && p.name !== 'key'
|
141735
|
+
const jsxAttributesWithoutKey = propAttributes.filter(
|
141736
|
+
p => p.kind === 'JsxAttribute' && p.name !== 'key'
|
141737
141737
|
);
|
141738
141738
|
const jsxSpreadAttributes = propAttributes.filter(
|
141739
141739
|
p => p.kind === 'JsxSpreadAttribute'
|
141740
141740
|
);
|
141741
141741
|
const spreadPropsOnly =
|
141742
|
-
|
141743
|
-
jsxSpreadAttributes.length === 1;
|
141742
|
+
jsxAttributesWithoutKey.length === 0 && jsxSpreadAttributes.length === 1;
|
141744
141743
|
propAttributes.forEach(prop => {
|
141745
141744
|
switch (prop.kind) {
|
141746
141745
|
case 'JsxAttribute': {
|
package/package.json
CHANGED