(Solved) How to find which file is failing bundle process?


Recently i noticed my deployment failed due to broken meteor bundle.
While checking log files i find out that uglify is encountered syntax errors and failed. The problem is the log does not give me any usefull information:

Errors prevented bundling:
While minifying app code:
Unexpected token operator «=», expected punc «,»
at new JS_Parse_Error

I have made a lot of changes and alot of commits before realising my app is failing. So brute force file checking is kind of hard.
Any ideas how to solve this?


Here is the solution:
some packages had weak dependency on ecmascript package and it were not used in bundling process.
solved the problem.
see https://github.com/meteor/meteor/issues/5387