Unwanted minification of .json theme files

Recently, when running shopify theme dev --theme-editor-sync, if I save changes in the theme editor, I get a minified .json file from Shopify.

This is not great because this means that any changes I make will always conflict later on when I try to merge my development branch into the default branch later for deployment.

At the moment I’m just trying to work out if this is expected behaviour with a recent update to either Shopify, or shopify-cli, or if it is something on my end that is causing this.

Is anyone else experiencing this?


Example of the issue

I just found this, seems it is a known issue on version 3.70.0 with a fix in the works.

1 Like

Thanks for linking the GitHub issue Lester - the best option would be to keep an eye on the issue. When a fix is deployed, the team will update in the issue.

1 Like

Hi @lesterdefreitas - the fix has been applied to all stores. Formatting should be applied on the latest version of the CLI again :slight_smile:

2 Likes

Fantastic, thank you @Luke-Shopify @Liam-Shopify