greyby / vue-spinner

vue spinners
MIT License
1.81k stars 176 forks source link

UglifyJS2 failes to minify Vue-spinner #18

Open nilsi opened 7 years ago

nilsi commented 7 years ago

I included this package in my Meteor app and turns out UglifyJS2 (that is used by Meteors minifying package ) fails to minify it. Resulting in an very hard to debug error "ReferenceError: xo is not defined". I haven't had the chance to investigate exactly what it is that fails. I just included the spinner template that I need directly in my app instead and it works.

Part of the minified code that fails was: .registered.innerWidth=xo("width",!0),yo.Normalizations.registered.innerHeight=xo("height",!0),yo.Normalizations

Mentioning it here in case someone getting a similar error since I had to remove packages one by one until I found what caused the error.