Having comments in .json5 should be fine but even npm install fails when I have a comment in my electron-builder.json5.
install-app-deps
YAMLException: missed comma between flow collection entries at line 22, column 3:
// }
^
at generateError (xyz\node_modules\electron-builder\node_modules\js-yaml\lib\js-yaml\loader.js:162:10)
Building fails as well.