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 issue #58

Closed
renataogarcia opened this issue Nov 26, 2023 · 1 comment · Fixed by #59
Closed

Circular dependency issue #58

renataogarcia opened this issue Nov 26, 2023 · 1 comment · Fixed by #59

Comments

@renataogarcia
Copy link

I'm getting a circular dependency warning on eventemitter3, which causes the bundle to fail.

I've reported the issue here, but later found that it only happens if I'm using rollup-plugin-swc3 plugin, and it works fine with @rollup/plugin-typescript and @rollup/plugin-swc. Plain JS also works fine.

On eventemitter3 the index.mjs ESM wrapper imports index.js. The other plugins resolve index.js to index.js however rollup-plugin-swc3 resolves it to index.mjs. Which causes the circular dependency problem.

I was able to workaround it and make it work by changing the order in the extensions configuration. However, I was wondering if this is a bug since only rollup-plugin-swc3 behaves this way.

@SukkaW
Copy link
Owner

SukkaW commented Dec 6, 2023

@renataogarcia The bugfix is included in the release 0.11.0.

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

Successfully merging a pull request may close this issue.

2 participants