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): use watch mode for rollup plugin #26139

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

FrozenPandaz
Copy link
Collaborator

Current Behavior

@nx/rollup/plugin will not properly reload rollup.config.js files when they are updated as they are cached.

Expected Behavior

@nx/rollup/plugin loads rollup configs with watchMode enabled so that rollup utilizes the proper cache busting mechanism so that rollup.config.js is properly reloaded.

Related Issue(s)

Fixes #

@FrozenPandaz FrozenPandaz requested a review from a team as a code owner May 27, 2024 22:20
Copy link

vercel bot commented May 27, 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 May 27, 2024 10:21pm

@FrozenPandaz FrozenPandaz self-assigned this May 27, 2024
@FrozenPandaz FrozenPandaz requested a review from jaysoo May 28, 2024 23:56
@jaysoo jaysoo merged commit 27940d3 into master May 29, 2024
6 checks passed
@jaysoo jaysoo deleted the fix-rollup-plugin branch May 29, 2024 13:02
FrozenPandaz added a commit that referenced this pull request May 29, 2024
<!-- 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` -->

## Current Behavior
<!-- This is the behavior we have today -->

`@nx/rollup/plugin` will not properly reload `rollup.config.js` files
when they are updated as they are cached.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

`@nx/rollup/plugin` loads rollup configs with `watchMode` enabled so
that rollup utilizes the proper cache busting mechanism so that
`rollup.config.js` is properly reloaded.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit 27940d3)
Copy link

github-actions bot commented Jun 5, 2024

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 5, 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.

2 participants