Replies: 1 comment 4 replies
-
I think esbuild supports customizing these names via the chunk-names setting: https://esbuild.github.io/api/#chunk-names But (I think) remix has a hardcoded template for the chunk name: remix/packages/remix-dev/compiler.ts Line 382 in 109da88 So I think this would require a change in remix to support this use case. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've noticed that if I have a remix app with a route like
/google-ads
(for example, a page that explains what Google Ads is), code-splitting will result in it loading a URL like/build/routes/google-ads-VCRBPSAT.js
Some ad blockers will "helpfully" block this, eg AdBlock does.
This results in an error being rendered:
Is it possible to control the URLs of code split bundles to not repeat the name of the route? I see how it's useful for debugging, but in this case I'd like to mangle the name to avoid adblock triggering.
Beta Was this translation helpful? Give feedback.
All reactions