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.
Files changed (2) hide show
  1. package/dist/index.js +3 -4
  2. 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 jsxAttributesWithoutKeyAndRef = propAttributes.filter(
141736
- p => p.kind === 'JsxAttribute' && p.name !== 'key' && p.name !== 'ref'
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
- jsxAttributesWithoutKeyAndRef.length === 0 &&
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-react-compiler",
3
- "version": "0.0.0-experimental-16e4ce7-20241209",
3
+ "version": "0.0.0-experimental-179bb06-20241211",
4
4
  "description": "Babel plugin for React Compiler.",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",