bob icon indicating copy to clipboard operation
bob copied to clipboard

Only ESM or only CJS build option

Open n1ru4l opened this issue 3 years ago • 0 comments

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.

n1ru4l avatar Jul 27 '22 07:07 n1ru4l