Remove unnecessary closure in the src/core/font_renderer.js file

With modern JavaScript modules, where you explicitly list the properties that should be exported, it's no longer necessary to wrap *all* of the code within one file into a top-level closure.[1]

This patch reduces the size, of even the *built* `pdf.worker.js` file, since there's now a lot less unnecessary whitespace.

---
[1] For files which contain *different* functionality, some closures may however still make sense in order to separate the code.
It might be possible to remove some of those cases later, e.g. once private class fields becomes generally available/usable in browsers.
This commit is contained in:
Jonas Jenwald 2021-05-05 22:20:10 +02:00
parent afb8c4fd25
commit 0a32ad3e42

File diff suppressed because it is too large Load Diff