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

Circular dependency hangs watch option #5415

Open
apietrzaklea opened this issue Mar 5, 2024 · 0 comments
Open

Circular dependency hangs watch option #5415

apietrzaklea opened this issue Mar 5, 2024 · 0 comments

Comments

@apietrzaklea
Copy link

apietrzaklea commented Mar 5, 2024

Rollup Version

4.12.0

Operating System (or Browser)

Windows

Node Version (if applicable)

18.16.0

Link To Reproduction

https://github.com/apietrzaklea/rollup-watch-hangs

Expected Behaviour

Watch correctly handles circular dependencies

Actual Behaviour

Currently when circular dependency happens between more than two files, rollup hangs when watcher wants rebuild library.

In example project run: "npm run start" and when build is done, try to change "file2.ts" for example.

Based on my investigation fetchModule enters with isPreload === true and goes into handleExistingModule. That ends with await loadPromise and freeze.

It does not happen when first build is done.

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

No branches or pull requests

1 participant