babel-plugin-react-compiler 0.0.0-experimental-a550a97-20250529 → 0.0.0-experimental-0fa1c14-20250603

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 +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -84516,7 +84516,6 @@ function codegenInstructionValue(cx, instrValue) {
84516
84516
  case "UnaryExpression": {
84517
84517
  value = t3.unaryExpression(
84518
84518
  instrValue.operator,
84519
- // todo
84520
84519
  codegenPlaceToExpression(cx, instrValue.value)
84521
84520
  );
84522
84521
  break;
@@ -85261,7 +85260,11 @@ function codegenLValue(cx, pattern) {
85261
85260
  }
85262
85261
  function codegenValue(cx, loc, value) {
85263
85262
  if (typeof value === "number") {
85264
- return t3.numericLiteral(value);
85263
+ if (value < 0) {
85264
+ return t3.unaryExpression("-", t3.numericLiteral(-value), false);
85265
+ } else {
85266
+ return t3.numericLiteral(value);
85267
+ }
85265
85268
  } else if (typeof value === "boolean") {
85266
85269
  return t3.booleanLiteral(value);
85267
85270
  } else if (typeof value === "string") {
@@ -94238,7 +94241,7 @@ function validateNoCapitalizedCalls(fn) {
94238
94241
  return errors.asResult();
94239
94242
  }
94240
94243
 
94241
- // src/Validation/ValidateNoRefAccesInRender.ts
94244
+ // src/Validation/ValidateNoRefAccessInRender.ts
94242
94245
  var opaqueRefId = Symbol();
94243
94246
  function makeRefId(id) {
94244
94247
  CompilerError.invariant(id >= 0 && Number.isInteger(id), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-react-compiler",
3
- "version": "0.0.0-experimental-a550a97-20250529",
3
+ "version": "0.0.0-experimental-0fa1c14-20250603",
4
4
  "description": "Babel plugin for React Compiler.",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",