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


#1

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:
C:\Users\undea\AppData\Local.meteor\packages\standard-minifier-js\1.0.8\plugin.minifyStdJS.os\npm\node_modules\meteor\minifier-js\nod
e_modules\uglify-js\lib\parse.js:196:18:
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?


#2

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