Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
No EOL
766 B
Text
18 lines
No EOL
766 B
Text
export function updateTelemetryLoaderCtxFromTransformOutput(ctx, output) {
|
|
if (output.eliminatedPackages && ctx.eliminatedPackages) {
|
|
for (const pkg of JSON.parse(output.eliminatedPackages)){
|
|
ctx.eliminatedPackages.add(pkg);
|
|
}
|
|
}
|
|
if (output.useCacheTelemetryTracker && ctx.useCacheTracker) {
|
|
for (const [key, value] of JSON.parse(output.useCacheTelemetryTracker)){
|
|
const prefixedKey = `useCache/${key}`;
|
|
const numericValue = Number(value);
|
|
if (!isNaN(numericValue)) {
|
|
ctx.useCacheTracker.set(prefixedKey, (ctx.useCacheTracker.get(prefixedKey) || 0) + numericValue);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=update-telemetry-loader-context-from-swc.js.map |