fix(catalog-backend): move generateStableHash out of shared util to fix Storybook build (#34284)
* fix(catalog-backend): move generateStableHash out of shared util to fix Storybook build The util.ts file mixed Node.js-only code (createHash from node:crypto) with pure constants. Since InMemoryCatalogClient reaches into buildEntitySearch via a relative import, and buildEntitySearch imports from util.ts, the node:crypto dependency leaked into Vite's browser bundle causing the Storybook build to fail. Signed-off-by: benjdlambert <ben@blam.sh> * add changeset Signed-off-by: benjdlambert <ben@blam.sh> --------- Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-backend': patch
|
||||
---
|
||||
|
||||
Moved `generateStableHash` out of shared utility file to avoid pulling `node:crypto` into browser bundles
|
||||
Reference in New Issue
Block a user