Binaryify / vue-qr

The Vue Component for Awesome-qr.js
MIT License
849 stars 123 forks source link

:hammer: fix an error thrown by UglifyJs #2

Closed shazha closed 7 years ago

shazha commented 7 years ago

I'm using vue-qr in my project which is created from the vue-cli webpack template, running npm run build will throw the following error: ERROR in static/js/vendor.d513252f5d3a2d1eb2cb.js from UglifyJs Unexpected token: punc (}) [./~/vue-qr/src/util.js:8,0][static/js/vendor.d513252f5d3a2d1eb2cb.js:28170,0] so I updated util.js by using ES6 export instead of module.exports and the error is gone. please kindly review my changes and let me know if there are any further changes required.

Binaryify commented 7 years ago

Thank to fix that ~