Skip to content

Published package has mismatched internal chunk imports — esbuild fails to resolve os / Gs exports #1

@EchoSou1

Description

@EchoSou1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions