pdf.js/external
Alex Plumley 3b9031f6a3 Fix pdfjs-dist/webpack causing errors with certain configs
Using `require.resolve("worker-loader")` to check if `worker-loader` is installed causes webpack to include `worker-loader` in the output bundle, which is not the intended effect. Aside from increasing the bundle size unnecessarily, it also causes errors for webpack configs with targets that don't have node's built-in modules.

These errors can be fixed by configuring webpack `externals` to exclude `worker-loader`, but it's more difficult to figure out this solution than to figure out that `worker-loader` needs to be installed (even without this explicit error message).

To solve this, the explicit check for `worker-loader` has been removed. An alternative solution would be to use webpack's `resolveWeak`. Documentation has also been added in `examples/webpack` to help users.
2020-06-03 14:50:41 -04:00
..
bcmaps Removes external/cmaps; adds binary cmaps to the repo 2014-03-17 13:30:27 -05:00
builder Remove the hasPrefixedFirefox functionality from the external/builder/builder.js file 2020-05-29 17:18:16 +02:00
cmapscompress Replace String.prototype.substr() occurrences with String.prototype.substring() 2018-09-28 11:41:07 +02:00
dist Fix pdfjs-dist/webpack causing errors with certain configs 2020-06-03 14:50:41 -04:00
importL10n Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
systemjs Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
webL10n Stop dispatching a "localized" event from the webL10n library, since it's unused and may clash with the default viewer 2019-09-13 12:38:36 +02:00
webpack Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
.eslintrc Provide custom messages for the no-restricted-globals ESLint rule, and refactor the .eslintrc files (PR 9868 follow-up) 2018-07-23 14:10:13 +02:00
.gitignore Removes external/cmaps; adds binary cmaps to the repo 2014-03-17 13:30:27 -05:00