Closed ColinKrist closed 8 months ago
Hey there, thanks for the Issue! I am currently working on a newer version which fixes this problem! Probably gonna drop next weeks.., should also include some fixes for other underlying/related vite issues.
Dependencies have been updated to latest with v0.11.4.
Considering i got a lot of messages regarding Vite 5, i just want to state that this Package fully works with Vite 5 - there are no issues with it.
I haven't checked this package in a bit, but vite is still a direct dependency pictured above. That means when Vite has another major version release (v6) everyone is hung out to dry without installing both versions of vite into their node_modules.
I am suggesting a transition to using vite as a peerDependency to enable the usage of version ranges. There's a few pros to this model -
dependencies
. Fixes issue I've mentioned above"peerDependencies": {
"dependency-name": "^1.0.0 || ^2.0.0"
}
Feel free to close this when 0.12
is published - I had some time before lunch to review and see it's now listed as a devDependency
for the Plugin
type which should resolve the issue that's happening now.
I hadn't dug into the code to check if you were using a utility function from vite, but happy the problem is resolving itself naturally without major changes.
Hey there!
Yes that is the current plan, right now there is still some parts used for vite, but these are removed to only types in the next Version 0.12
.
Definitely moving vite towards peer :)
Moved this towards peer now as 0.12
will still take some more time!
The package.json strictly calls out v4 - v5 just got released and I am currently able to run this on my V5 project, but its also pulling in vite v4 alongside v5 which probably doesn't need to happen.
I believe peer dependencies should be used in this case to support multiple major versions