Skip to content

Commit 75f7e01

Browse files
EvanBaconmeta-codesync[bot]
authored andcommitted
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: react/metro#1638 Reviewed By: vzaidman Differential Revision: D90469997 Pulled By: robhogan fbshipit-source-id: 44d06e7ec873988bcd0dff61ec13318d20f7223b
1 parent e583e02 commit 75f7e01

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

flow-typed/npm/babel_v7.x.x.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,8 @@ declare module '@babel/core' {
10831083
+babelrc: string | void;
10841084
+babelignore: string | void;
10851085
+config: string | void;
1086+
+files: ReadonlySet<string>;
1087+
+fileHandling: 'ignored' | 'transpile' | 'unsupported';
10861088

10871089
constructor(options: ValidatedOptions): PartialConfig;
10881090

0 commit comments

Comments
 (0)