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:
ERROR in static/js/vendor.ea86c08796cfe0807845.js from UglifyJs
Invalid flags supplied to RegExp constructor 'api' [./~/util/util.js:100,0][static/js/vendor.ea86c08796cfe0807845.js:34749,234]
ERROR in static/js/app.f0804ad0e635d28ef12a.js from UglifyJs
Invalid flags supplied to RegExp constructor 'api' [vuePdfNoSss.vue?4699913c:6,0][static/js/app.f0804ad0e635d28ef12a.js:902,219]
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.
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
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.