threedayAAAAA / vite-plugin-circular-dependency

Detect circular dependencies
MIT License
34 stars 2 forks source link

Feature request : Vite 5 / Rollup 4 support (fixes `unmet peer rollup@^1.20.0||^2.0.0||^3.0.0: found 4.9.*`) #5

Closed MarArMar closed 8 months ago

MarArMar commented 8 months ago

I am using Sveltekit v2, which requires Vite 5 and it seems to install also @rollup/pluginutils 5.0.2

Which makes these warnings at install time :

└─┬ vite-plugin-circular-dependency 0.2.1
  └─┬ @rollup/pluginutils 5.0.2
    └── ✕ unmet peer rollup@^1.20.0||^2.0.0||^3.0.0: found 4.9.6

Will report if I see it breaking

Thank you so much btw, it has been an extremely useful lib for me as it helps uncover deep problems involving circular deps ! 💛

MarArMar commented 8 months ago

Note : I tried to use the plugin with Svelte 2 & Vite 5 and it seemed to work as usual ✔️

threedayAAAAA commented 8 months ago

Thank you very much for reporting this issue, I think it is caused by a dependency on @rollup/pluginutils. This problem has been solved in version 5.0.5. I will update this dependency and release a new version. You can update to the latest version. Thanks again for raising this question

https://www.npmjs.com/package/@rollup/pluginutils/v/5.0.5?activeTab=code

threedayAAAAA commented 8 months ago

You can update the version to 0.3.1

MarArMar commented 8 months ago

Ok indeed had no problem so far with version 0.3.1 & no more alert ! Thanks 🥰