Files
klz-cables.com/.pnpm-store/v10/files/5f/dd856a39d36558994d3947e72f529c00a1df31618a760a4abc984ac0b024f21f64eb069c6841aff519be3cddcc3a2a125a7b352089fc070b5f2ddc77f42901
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

18 lines
779 B
Plaintext

import { parsePayloadComponent } from './parsePayloadComponent.js';
export const getFromImportMap = (args)=>{
const { importMap, PayloadComponent, schemaPath, silent } = args;
const { exportName, path } = parsePayloadComponent(PayloadComponent);
const key = path + '#' + exportName;
const importMapEntry = importMap[key];
if (!importMapEntry && !silent) {
// eslint-disable-next-line no-console
console.error(`getFromImportMap: PayloadComponent not found in importMap`, {
key,
PayloadComponent,
schemaPath
}, 'You may need to run the `payload generate:importmap` command to generate the importMap ahead of runtime.');
}
return importMapEntry;
};
//# sourceMappingURL=getFromImportMap.js.map