lasso-js / lasso

Advanced JavaScript module bundler, asset pipeline and optimizer
582 stars 75 forks source link

Fix displaying errors when minification fails. #284

Closed DylanPiercey closed 6 years ago

DylanPiercey commented 6 years ago

Looks like previously uglify js threw errors when it couldn't minify a file, now it returns an object which was tripping us up.

This now throws the error properly from uglify js and I brought in babel-code-frame to make the error message a bit prettier.