Skip to content

Wrong formats and broken type definitions #836

@DaSchTour

Description

@DaSchTour

To but it mildly I'm extremely confused. For a zero configuration bundler there is a lot to do to make it work, while actually it's completely broken.

Typescript definitions are missing files that only include interfaces which leads to broken type definitions.

The esm format is actually not a module format but also just a bundle. I would have expected to see a low transpiled code that can be picked up by another bundler when it is imported as a library in another project.

I would also expect it not to be minified if it's a module format and that it also is not put into one file but actually preserve the module structure.

When using "type": "module" and "main": "./dist/index.cjs", as described in the README all bundles are named index.cjs.js, index.cjs.umd.js and so on. So all references in the package.json are wrong.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions