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

feat(react): add generateExportsField option to @nrwl/web:rollup executor so it is an opt-in feature #10742

Merged
merged 1 commit into from Jun 15, 2022

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Jun 14, 2022

The new exports field is a way to specify entry points for packages. Node and TypeScript both support this field, however it is causing issues with other tooling, so for now it is opt-in via the generateExportsField option.

Also adds skipTypeField option in case that is causing issues for users.

Current Behavior

Building with @nrwl/web:rollup generates package.json with exports field for the main entry point. This is causing some issues with other tooling/bundlers.

Expected Behavior

Users must set generateExportsField: true in order to generate this field. By default it is off.

Related Issue(s)

Fixes #10741

@nx-cloud
Copy link

nx-cloud bot commented Jun 14, 2022

Nx Cloud Report

CI is running for commit da947e1.

📂 Click to track the progress, see the status, the terminal output, and the build insights.


Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Jun 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nx-dev ✅ Ready (Inspect) Visit Preview Jun 15, 2022 at 2:23PM (UTC)

…ecutor so it is an opt-in feature

- Also adds skipTypeField option in case that is causing issues for users
- Fixes nrwl#10741
@jaysoo jaysoo enabled auto-merge (squash) June 15, 2022 14:29
@jaysoo jaysoo merged commit d58eedc into nrwl:master Jun 15, 2022
@jaysoo jaysoo deleted the issues/10741 branch June 15, 2022 14:51
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rollup package issues after (#10349)
2 participants