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.

/* Copyright 2016 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.