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): load rollup config using the rollup version installed in the workspace #26298

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented May 31, 2024

This PR updates @nx/rollup/plugin so it loads the config file using loadConfigFile from the Rollup version installed in the workspace.

This fixes the issue when initializing in the axios repo, since the require call in their config is no longer valid ESM in Rollup 4.

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

Copy link

vercel bot commented May 31, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jun 6, 2024 1:39am

@jaysoo jaysoo marked this pull request as ready for review May 31, 2024 18:31
@jaysoo jaysoo requested a review from a team as a code owner May 31, 2024 18:31
@jaysoo jaysoo requested a review from JamesHenry May 31, 2024 18:31
@jaysoo jaysoo force-pushed the fix/rollup-axios-NXC-683 branch 2 times, most recently from 1363fb5 to cc55daf Compare May 31, 2024 19:56
@jaysoo jaysoo force-pushed the fix/rollup-axios-NXC-683 branch from cc55daf to 5bfb685 Compare June 3, 2024 14:05
@jaysoo jaysoo requested a review from FrozenPandaz June 3, 2024 16:59
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- This is the behavior we have today -->

- nx run will not have quotes, but underlying command will have

<!-- This is the behavior we should expect with the changes in this PR
-->
<img width="524" alt="Screenshot 2024-05-23 at 2 07 20 PM"
src="https://github.com/nrwl/nx/assets/16211801/7c96f884-3c11-4f56-b6b4-b3fd41ac2187">
<img width="471" alt="Screenshot 2024-05-23 at 2 07 03 PM"
src="https://github.com/nrwl/nx/assets/16211801/b6746a25-ebfc-4cb2-ad1d-4f8600782037">

<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
@jaysoo jaysoo force-pushed the fix/rollup-axios-NXC-683 branch from 5bfb685 to a8fd0cc Compare June 6, 2024 01:37
@jaysoo jaysoo enabled auto-merge (squash) June 6, 2024 01:37
@jaysoo jaysoo disabled auto-merge June 6, 2024 03:45
@jaysoo jaysoo merged commit 00c1e39 into master Jun 6, 2024
6 checks passed
@jaysoo jaysoo deleted the fix/rollup-axios-NXC-683 branch June 6, 2024 03:45
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 14, 2024
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.

3 participants