mirror of
https://github.com/react/react-native.git
synced 2026-09-28 13:23:09 +08:00
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
This commit is contained in:
committed by
meta-codesync[bot]
parent
e583e02ec4
commit
75f7e01903
Vendored
+2
@@ -1083,6 +1083,8 @@ declare module '@babel/core' {
|
||||
+babelrc: string | void;
|
||||
+babelignore: string | void;
|
||||
+config: string | void;
|
||||
+files: ReadonlySet<string>;
|
||||
+fileHandling: 'ignored' | 'transpile' | 'unsupported';
|
||||
|
||||
constructor(options: ValidatedOptions): PartialConfig;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user