From f5b78f6c063b6b1bf3017d89037346b4e16b338e Mon Sep 17 00:00:00 2001 From: Durvesh Pilankar Date: Mon, 29 Jun 2026 12:35:45 -0700 Subject: [PATCH] fix(babel-plugin): correct typos in comment and test name Fixes two self-evident spelling typos in the babel-plugin package: - parse-stylex-create-arg.js: "is'nt" -> "isn't" in a TODO comment - transform-stylex-props-test.js: "duplicte" -> "duplicate" in a test name Comment/test-name only; no behavior change. --- .../babel-plugin/__tests__/transform-stylex-props-test.js | 2 +- .../babel-plugin/src/visitors/parse-stylex-create-arg.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@stylexjs/babel-plugin/__tests__/transform-stylex-props-test.js b/packages/@stylexjs/babel-plugin/__tests__/transform-stylex-props-test.js index f6f2943b9..148f7e6c2 100644 --- a/packages/@stylexjs/babel-plugin/__tests__/transform-stylex-props-test.js +++ b/packages/@stylexjs/babel-plugin/__tests__/transform-stylex-props-test.js @@ -3385,7 +3385,7 @@ describe('@stylexjs/babel-plugin', () => { `); }); - test('hoisting correctly with duplicte names', () => { + test('hoisting correctly with duplicate names', () => { expect( transform( ` diff --git a/packages/@stylexjs/babel-plugin/src/visitors/parse-stylex-create-arg.js b/packages/@stylexjs/babel-plugin/src/visitors/parse-stylex-create-arg.js index 7ae710d97..810901116 100644 --- a/packages/@stylexjs/babel-plugin/src/visitors/parse-stylex-create-arg.js +++ b/packages/@stylexjs/babel-plugin/src/visitors/parse-stylex-create-arg.js @@ -275,7 +275,7 @@ function evaluateObjKey( } else if (keyPath.isIdentifier()) { key = keyPath.node.name; } else { - // TODO: This is'nt handling all possible types that `keyPath` could be + // TODO: This isn't handling all possible types that `keyPath` could be key = (keyPath.node as $FlowFixMe).value; } return {