Files
klz-cables.com/.pnpm-store/v10/files/ae/59860e96d7eac3b94b58c5301f033122f6987d60f0162215795c11f68445d8696c8f0f06c447fd8dde1364449312efb024b2b5a0902bd6861516d49df0b291
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

27 lines
915 B
Plaintext

import MessageExtractor from './extractor/MessageExtractor.js';
// Module-level extractor instance for transformation caching.
// Note: Next.js/Turbopack may create multiple loader instances, but each
// only handles file transformation. The ExtractionCompiler (which manages
// catalogs) is initialized separately in createNextIntlPlugin.
let extractor;
function extractionLoader(source) {
const callback = this.async();
const projectRoot = this.rootContext;
// Avoid rollup's `replace` plugin to compile this away
const isDevelopment = process.env['NODE_ENV'.trim()] === 'development';
if (!extractor) {
extractor = new MessageExtractor({
isDevelopment,
projectRoot,
sourceMap: this.sourceMap
});
}
extractor.extract(this.resourcePath, source).then(result => {
callback(null, result.code, result.map);
}).catch(callback);
}
export { extractionLoader as default };