From 75f7e01903fbdf774bb683653d20350af66d61ba Mon Sep 17 00:00:00 2001 From: evanbacon Date: Sat, 7 Mar 2026 12:32:32 -0800 Subject: [PATCH] feat: add support for including the babel partial config to cache key 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. Metro changelog: [Fix] Include user-defined babel config in transformer cache key to ensure correctness Changelog: [Internal] bypass-github-export-checks X-link: https://github.com/facebook/metro/pull/1638 Reviewed By: vzaidman Differential Revision: D90469997 Pulled By: robhogan fbshipit-source-id: 44d06e7ec873988bcd0dff61ec13318d20f7223b --- flow-typed/npm/babel_v7.x.x.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flow-typed/npm/babel_v7.x.x.js b/flow-typed/npm/babel_v7.x.x.js index 03bc82be14e..4da72d6b7d5 100644 --- a/flow-typed/npm/babel_v7.x.x.js +++ b/flow-typed/npm/babel_v7.x.x.js @@ -1083,6 +1083,8 @@ declare module '@babel/core' { +babelrc: string | void; +babelignore: string | void; +config: string | void; + +files: ReadonlySet; + +fileHandling: 'ignored' | 'transpile' | 'unsupported'; constructor(options: ValidatedOptions): PartialConfig;