You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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-swc3resolves 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.
The text was updated successfully, but these errors were encountered:
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 resolveindex.js
toindex.js
howeverrollup-plugin-swc3
resolves it toindex.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 onlyrollup-plugin-swc3
behaves this way.The text was updated successfully, but these errors were encountered: