Pages is stripping off sourceMappingURL comments from my .js files

Cloudflare Pages is stripping off sourceMappingURL comments from my .js files, which breaks Sentry stack traces i.e. this comment is not present when using Cloudflare Pages

//# sourceMappingURL=7947560.js.map

I’ve tried putting the domain in development mode and turning off js minification, but that doesn’t seem to help. I’ve tried both my custom domain and the .pages.dev domains. Using development mode does show each .js file as DYNAMIC, so it is avoiding the CDN, but Pages is obviously stripping it out before that.
I deploy the same commit to Firebase hosting at the same time and can confirm Firebase doesn’t strip it out.
Either, how to I set Pages to keep this comment, or how do I configure Sentry stack traces with Pages.