From 343aa13b684e0085ddf67fa2a660ccc001403a53 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 30 Jul 2026 03:10:36 +0530 Subject: [PATCH] build: emit ads chunks with hash-only filenames A fixed ui-custom name still gives adblock filter lists a stable string to match on. Emit the Carbon/BuySellAds chunks with just the content hash instead. Changes the emitted filenames for those chunks and, transitively, the hashes of chunks that import them. Co-Authored-By: Claude Fable 5 --- src/node/build/bundle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/build/bundle.ts b/src/node/build/bundle.ts index c67ecaae..c6d14d96 100644 --- a/src/node/build/bundle.ts +++ b/src/node/build/bundle.ts @@ -120,7 +120,7 @@ export async function bundle( chunkFileNames(chunk) { // avoid ads chunk being intercepted by adblock return /(?:Carbon|BuySell)Ads/.test(chunk.name) - ? `${config.assetsDir}/chunks/ui-custom.[hash].js` + ? `${config.assetsDir}/chunks/[hash].js` : `${config.assetsDir}/chunks/[name].[hash].js` }, codeSplitting: {