Skip to content

Remove obsolete FlowFixMe for @jridgewell/sourcemap-codec import - #2167

Merged
robhogan merged 1 commit into
react:mainfrom
vzaidman:remove-obsolete-flowfixme-sourcemap-codec
Nov 4, 2026
Merged

robhogan merged 1 commit into
react:mainfrom
vzaidman:remove-obsolete-flowfixme-sourcemap-codec

Conversation

@vzaidman

@vzaidman vzaidman commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

After #2164 renamed the sourcemap-codec libdef to .js.flow, Flow loads it as a library file and the import in metro-transform-worker is typed, so the cannot-resolve-module suppression is obsolete.

This also syncs back the removal that the internal stack (D129410423) had as a local modification, so fbsource and GitHub do not drift on this line.

Validation:

  • OSS flow focus-check on packages/metro-transform-worker/src/index.js: 0 errors.
  • prettier --check, eslint: clean. metro-transform-worker Jest: 35 passed.

After react#2164 renamed the sourcemap-codec libdef to .js.flow, Flow loads it as a library file and the import is typed, so the cannot-resolve-module suppression is obsolete.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 4, 2026
@vzaidman
vzaidman requested a review from javache November 4, 2026 10:35
@robhogan
robhogan merged commit 97f9e8a into react:main Nov 4, 2026
16 checks passed
@vzaidman
vzaidman deleted the remove-obsolete-flowfixme-sourcemap-codec branch November 4, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants