Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only ESM or only CJS build option #111

Open
n1ru4l opened this issue Jul 27, 2022 · 0 comments
Open

Only ESM or only CJS build option #111

n1ru4l opened this issue Jul 27, 2022 · 0 comments

Comments

@n1ru4l
Copy link
Collaborator

n1ru4l commented Jul 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant