Files
klz-cables.com/.pnpm-store/v10/files/ac/f45ad3d5892f8d8f041e5f0d1c52a619956fc11ac42b07367ccd70d477f5b349d808937269c0c04b8bf37a480d33e2ebd68acd6e4a904065f421d74b1049ec
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

38 lines
1.4 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const importInTheMiddle = require('import-in-the-middle');
const moduleModule = require('module');
const detection = require('../utils/detection.js');
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
/**
* Initialize the ESM loader - This method is private and not part of the public
* API.
*
* @ignore
*/
function initializeEsmLoader() {
if (!detection.supportsEsmLoaderHooks()) {
return;
}
if (!core.GLOBAL_OBJ._sentryEsmLoaderHookRegistered) {
core.GLOBAL_OBJ._sentryEsmLoaderHookRegistered = true;
try {
const { addHookMessagePort } = importInTheMiddle.createAddHookMessageChannel();
// @ts-expect-error register is available in these versions
moduleModule.register('import-in-the-middle/hook.mjs', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('sdk/esmLoader.js', document.baseURI).href)), {
data: { addHookMessagePort, include: [] },
transferList: [addHookMessagePort],
});
} catch (error) {
core.debug.warn("Failed to register 'import-in-the-middle' hook", error);
}
}
}
exports.initializeEsmLoader = initializeEsmLoader;
//# sourceMappingURL=esmLoader.js.map