litespeed cdn with quic cloud is creating errored JS code when it’s minified or cached. How do i turn this off?

I have a simple JS file that adds and removes classes to html elements. it’s working perfectly fine in my dev environment. However in production i noticed i’m getting an error in a file that litespeed created with as shown.
working js

the other image shows when it loads without litespeed there is no problem
issue js

I tried turning off JS setting but it’s not affecting the issue.
Tried flushing the cache and hard restarting on devices.

optimizedwebs.design

I removed the CDN and it works fine now, I’m wondering if it was configuration with litespeed, no docs on the matter that go into enough detail.