Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api-minor] Tweak the Node.js fake worker loader to prevent `Critical…
… dependency: ...` warnings from Webpack Since bundlers, such as Webpack, cannot be forced to leave `require` statements alone we are thus forced to jump through hoops in order to prevent these warnings in third-party deployments of the PDF.js library; please see [Webpack issue 8826](webpack/webpack#8826) and libraries such as [require-fool-webpack](https://github.com/sindresorhus/require-fool-webpack). *Please note:* This is based on the assumption that code running in Node.js won't ever be affected by e.g. Content Security Policies that prevent use of `eval`. If that ever occurs, we should revert to a normal `require` statement and simply document the Webpack warnings instead.
- Loading branch information