-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging polymer apps: stack trace is wacko #307
Comments
Decoding the sourcemap with https://github.com/mozilla/source-map gives the same result as devtools. I'm surprised but it indicates the map in polymer is incorrect. |
Firefox v25 gives the same result as Chrome devtools, the stack frames are not mapped to correct source lines. |
If I build polymer and use polymer.concat.js, then the sourcemap works. polymer.min.js does not work. |
If I change the gruntfile.js to use |
Thanks for the deep analysis! Mangling should just be a filesize optimization (even better with gzip). I'll see if I can mangle the sourcemap into the right shape, or if we have to live with turning that optimization off. |
Just a suggestion: you might try a different minifier, eg one based on esprima just to see if you can get opt and correctness without understanding the cause. |
Looks like the root cause is gruntjs/grunt-contrib-uglify#22. Using I will work around this by adding the license file as a JS source, and uglify will preserve it with the |
Related to Polymer/polymer#307 Root cause is gruntjs/grunt-contrib-uglify#22
https://github.com/Polymer/polymer/releases/download/v0.0.20131003/polymer-all-v0.0.20131003.zip
The stack is mapped to source but the locations make no sense.
The text was updated successfully, but these errors were encountered: