FranckFreiburger / vue-pdf

vue.js pdf viewer
MIT License
2.23k stars 522 forks source link

vue-pdf build failed #65

Open sickcat opened 6 years ago

sickcat commented 6 years ago

If I include this package, I can play it very well in "npm run dev" but I meet some problem in "npm run build".The error msg are below:

My whole project are in npmnovel/node. You can clone it and build by yourself. The only place I use this package are in "node/src/components/ReadBook.vue".If I annotate all "vue-pdf", my project will build successfully.

Thank you very much.

FranckFreiburger commented 6 years ago

I think the issue is related to UglifyJs that is called in npm run build only. Can you try to identify what is the RegExp that don't pass UglifyJs ? thanks