pdf.js/examples
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
..
acroforms Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
browserify Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
components Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
image_decoders Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
learning Add direction: ltr; to the canvases used in examples/learning, to ensure correct text rendering (issue 11457) 2020-01-12 12:25:23 +01:00
mobile-viewer Enable the ESLint grouped-accessor-pairs rule 2020-05-07 11:43:19 +02:00
node [api-minor] Decode all JPEG images with the built-in PDF.js decoder in src/core/jpg.js 2020-05-22 00:22:48 +02:00
svgviewer Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
text-only Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
webpack Fix pdfjs-dist/webpack causing errors with certain configs 2020-06-03 14:50:41 -04:00
.eslintrc Upgrade to eslint version 6 2019-08-24 20:21:10 +02:00