From 7d02e173a63112b0044045496da60d9a6b85cd6b Mon Sep 17 00:00:00 2001 From: Rob Hogan Date: Mon, 16 Sep 2024 03:48:28 -0700 Subject: [PATCH] Add inline-requires-plugin implementation hash to cache key Summary: While testing changes to `inline-requires-plugin` I noticed changes to the implementation were not changing the transform cache key as they should. It looks like we just missed adding `inline-requires-plugin` to `getTransformPluginCacheKeyFiles()` when we vendored it last year: D47439822. Changelog: ``` - **[Fix]**: Invalidate transform cache on changes to inline-requires implementation. ``` Reviewed By: huntie Differential Revision: D62689635 fbshipit-source-id: 590702489e8b631cf032128e59d6cde927111f6f --- packages/metro-transform-plugins/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/metro-transform-plugins/src/index.js b/packages/metro-transform-plugins/src/index.js index 96a54f1065..ecd0da0273 100644 --- a/packages/metro-transform-plugins/src/index.js +++ b/packages/metro-transform-plugins/src/index.js @@ -61,6 +61,7 @@ module.exports = ({ require.resolve('./constant-folding-plugin'), require.resolve('./import-export-plugin'), require.resolve('./inline-plugin'), + require.resolve('./inline-requires-plugin'), require.resolve('./normalizePseudoGlobals'), ], }: TransformPlugins);