Skip to content

Hybrid bundle (ESM, CJS) #126

@formatlos

Description

@formatlos

As some libraries already moved away from CommonJS and delivering ESM only builds, we startet moving our projects over to using ESM as well.

Now when importing ZOD in our project, we run into the problem, that the ESM build of zod is used while zod loaded through this library will use the CJS build, leading to zod having troubles with some schemas (because it's using instanceof internally).

Moving forward it would be great if you could bundle the lib with both CJS and ESM bundles.

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