The modern-pdf-lib package (v0.25.0 & v0.26.0) has inconsistent build artifacts: internal chunk .mjs files import { os } (or { Gs }) from index-*.d.mts, but that file does not export that symbol, causing Vite/esbuild to fail at dependency optimization time. This is likely a tsdown build issue where chunk files and the type-declaration file are generated in separate passes with different minified symbol names, producing a mismatch.
The modern-pdf-lib package (v0.25.0 & v0.26.0) has inconsistent build artifacts: internal chunk .mjs files import { os } (or { Gs }) from index-*.d.mts, but that file does not export that symbol, causing Vite/esbuild to fail at dependency optimization time. This is likely a tsdown build issue where chunk files and the type-declaration file are generated in separate passes with different minified symbol names, producing a mismatch.