[BUG] Swagger UI no longer loads
### Describe the bug

https://github.com/tsedio/tsed/issues/2683 is still an issue. see: https://github.com/tsedio/tsed/issues/2683#issuecomment-2090678538

### To Reproduce

1. enable ESM
2. set up swagger
3. try to load page

### Expected behavior

swagger UI loads

### Code snippets

_No response_

### Repository URL example

_No response_

### OS

Windows 11

### Node version

v20.11.0

### Library version

7.68.3

### Additional context

_No response_