Worker script gets minified twice

I got a weird error where a JSX rendered in prod doesn't have correct html line breaks. Upon further inspection I discovered that when code that's been previously minified by esbuild gets deployed to workers it somehow misses ALL line breaks in string literals which causes the issue. I'm using a custom JSX renderer, that's why it wasn't caught earlier I think. It is a requirement for the project. The code is deployed using Cloudflare API. Any suggestions how to fix this? Also, for some reason I can't PUT any non-minified scripts, CF just says that those don't have exported fetch handler which is simply not true
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server