I am working on a chrome extension which uses PDFJS, but PDFJS latest release have some javascript which is returning JS as string
Function("return this")()
which is not allowed in chrome extension. so it giving following error
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'
So, how can i bundle pdfjs files in chrome extension to get rid of this issue?