Skip to content

Fix default entry points #42

@jankapunkt

Description

@jankapunkt

Describe the bug

The default entry points are not 100% working in all environments plus some popular ones are missing

To Reproduce
Import a package using recent vite build system

Expected behavior
should import

Additional context

It should be the following:

{
  "type": "module",
  "main": "dist/index.cjs.js",
  "browser": "dist/index.iife.js",
  "exports": {
    "import": "./dist/index.js",
    "require": "./dist/index.cjs.js"
  },
  "module": "dist/index.js",
  "unpkg": "dist/index.iife.js",
  "jsdelivr": "dist/index.iife.js",
  "types": "dist/index.d.ts",
}

Note that types are missing, too and require #41 to be implemented

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions