Is there a way to stop Shopify from deleting "debugger;" statements in .js files? (Stop minify?)

relativelynew
Tourist
12 0 2

Hi everyone,

I am developing a section on a theme. The problem I am having is that, Shopify minifier removes the "debugger;" statements from the final cart.js file.

So I cant run the JS debugger if the "debugger;" statement is in a .js file. Is there way to stop this from happening? This is quite annoying.

 

Thanks a lot.

 

Replies 0 (0)