Skip to content

Only ESM or only CJS build option #111

Open
@n1ru4l

Description

@n1ru4l

Some packages only need cjs or esm. Thus it should be possible to specify that via the package.json config.

{
  "name": "fooo",
  "bob": {
    "cjs": false,
  }
}

Setting these options should also change the assertions for the package.json exports map. E.g. if "cjs" is false, a require should not be present in the exports map.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions