graphql-hive / graphql-hive/bob

Only ESM or only CJS build option

Open
#111 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
49
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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

```json
{
"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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.