Attach (recommended) or Link to PDF file here: No PDF needed; the viewer does not load properly.

Configuration:
- Web browser and its version: Chrome 119.0.6045.105
- Operating system and its version: Linux (Nobara 38)
- PDF.js version: 4.0.189
- Is a browser extension: No

It seems that https://github.com/mozilla/pdf.js/commit/927e50f5d48a67e76f2a51c112ea5a98867822fe broke `pdf_viewer`'s usage of `pdfjsLib` when using Webpack. Previously, it was possible to use it like this:
```js
import * as pdfjs from "pdfjs-dist/legacy/build/pdf";
import { EventBus, PDFLinkService, PDFSinglePageViewer } from "pdfjs-dist/legacy/web/pdf_viewer";
```
However, this now breaks as `pdf.mjs` now contains `__webpack_exports__ = globalThis.pdfjsLib = await __webpack_exports__;`. This means that when the `pdf_viewer` code executes, `pdfjsLib` is not set yet.

Please let me know if I'm missing anything, but I believe this is a regression in the library, as I wasn't able to find a way to use `pdf_viewer` with Webpack now.

getPdfFilenameFromUrl,
  getXfaPageViewport,
  GlobalWorkerOptions,
  ImageKind,
  InvalidPDFException,
  isDataScheme,
  isPdfFile,
  MissingPDFException,
  noContextMenu,
  normalizeUnicode,
  OPS,
  PasswordResponses,
  PDFDataRangeTransport,
  PDFDateString,
  PDFWorker,
  PermissionFlag,
  PixelsPerInch,
  PromiseCapability,
  RenderingCancelledException,
  renderTextLayer,
  setLayerDimensions,
  shadow,
  UnexpectedResponseException,
  updateTextLayer,
  Util,
  VerbosityLevel,
  version,
  XfaLayer,
};