Hello! I don't know if this issue is engine related, btw I can't find cocos creator repository for reporting this bug.
So, my game project is pretty big and yesterday I noticed very destructive bug in cocos creator for MacOSX.
When I try to recompile scripts I get the error:
SyntaxError: Unexpected token }
I'm sure that my scripts are valid. The project can be compiled and ran successfully in cocos creator for windows, the problem exists only for mac.
So, when I tried to run project in simulator I get this error message:
Simulator: SyntaxError: syntax error
at a (/Volumes/Transcend/projects/fluffy-dances-dev/fluffy-dances/library/bundle.project.js?009:7533:0)
When I inspect the bundle.project.js file I see that it has invalid syntax:
As you can see the RemovablePattern module starts in the line which is commented out. This is line
//# sourceMappingURL=data:application/json;charset=utf-8;base64,blablabla
I can find several places in file bundle.project.js where the code is corrupted by the same way. For example, one more broken module:
I uploaded the full bundle.project.js file to dropbox
When I run the project in browser I get the same problem:
So, the main question is: how can I disable generating source maps at all? I don't need them for debugging.