Skip to content

feat: add support for including the babel partial config to cache key#1638

Open
EvanBacon wants to merge 1 commit intofacebook:mainfrom
EvanBacon:@evanbacon/transformer/add-babel-partial-config
Open

feat: add support for including the babel partial config to cache key#1638
EvanBacon wants to merge 1 commit intofacebook:mainfrom
EvanBacon:@evanbacon/transformer/add-babel-partial-config

Conversation

@EvanBacon
Copy link
Contributor

Summary

Update the Metro Babel transformer to generate cache keys that include the contents of user Babel configuration files, ensuring cache invalidation when Babel configs change. This is similar to what Jest does and it seems to work really well for them.

Changelog: [Fix] Include user-defined babel config in transformer cache key to ensure correctness

Test plan

@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 Jan 9, 2026
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jan 9, 2026
Update the Metro Babel transformer to generate cache keys that include the contents of user Babel configuration files, ensuring cache invalidation when Babel configs change.
@EvanBacon EvanBacon force-pushed the @evanbacon/transformer/add-babel-partial-config branch from de0439b to 4f84860 Compare January 9, 2026 23:48
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Jan 11, 2026

@robhogan has imported this pull request. If you are a Meta employee, you can view this in D90469997.

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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants