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

fix(bundling): add skipTypeField back for rollup executor #17629

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

evanjmg
Copy link
Contributor

@evanjmg evanjmg commented Jun 16, 2023

This was previously removed and needs to be readded back since nx should always support esm modules with cjs dependencies. Forcing modern libraries to be not in esm format isn't good practice.
Previously removed here:
575c6a1

Current Behavior

No skipTypeField and breaking change was implemented - should be added back

Expected Behavior

Skip type field allows esm modules with cjs dependencies

Related Issue(s)

#17595

I just did this quickly so maintainers please edit the schema and regenerate the docs if you agree with me on this one

@evanjmg evanjmg requested a review from a team as a code owner June 16, 2023 12:28
@evanjmg evanjmg requested a review from jaysoo June 16, 2023 12:28
@vercel
Copy link

vercel bot commented Jun 16, 2023

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

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2023 1:45pm

@nx-cloud
Copy link

nx-cloud bot commented Jun 16, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit ea670a1. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Added back as a workaround for libs that target both ESM and CJS. It
will be addressed properly in the future once we use the exports field
correctly.
@jaysoo jaysoo changed the title fix(rollup): readd skipTypeField fix(bundling): add skipTypeField back for rollup executor Jun 22, 2023
@jaysoo
Copy link
Member

jaysoo commented Jun 22, 2023

Thanks for the PR, we'll add it back. This is fine as an escape hatch for users that run into issues.

@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 Jun 28, 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.

2 participants