Skip to content

Commit

Permalink
Add inline-requires-plugin implementation hash to cache key
Browse files Browse the repository at this point in the history
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
  • Loading branch information
robhogan authored and facebook-github-bot committed Sep 16, 2024
1 parent 5dbb344 commit 7d02e17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/metro-transform-plugins/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 7d02e17

Please sign in to comment.