Bump peerDep to support svelte 5
mhkeller opened this issue · 5 comments
I'm currently getting an npm error when I try to include this in a project that uses svelte 5 because I think npm needs to specifically be told to add beta tags: https://classic.yarnpkg.com/en/docs/dependency-versions#toc-pre-release-tags
I believe I'm also in need of this.
Same here, Svelte 4 is installed in our packaged build environment because of the this peer dependency
This causes warnings at build time
And this error in the application
Your application, or one of its dependencies, imported from 'svelte/internal', which was a private module used by Svelte 4 components that no longer exists in Svelte 5. It is not intended to be public API. If you're a library author and you used 'svelte/internal' deliberately, please raise an issue on https://github.com/sveltejs/svelte/issues detailing your use case.
We still need support for Svelte 4 though since we still got legacy apps using the same build environment.
To move forward we added an overrides entry to package.json
{
"overrides": {
"svelte": "^5.0.0-next.260"
}
}This is only an issue with the beta. The warning will go away once the final version is released
It would be really helpful to me if rollup-plugin-svelte would support the current release candiates of svelte 5 too.
Is it an option to define the peerDependency similar to svelte2tsx, like the following example?
"peerDependencies": {
"svelte": "^3.5.0 || ^4.0.0 || ^5.0.0-next.0 || ^5.0.0"
}Or, to support future major versions too, add an entry for major release candidates: ">=3.5.0 || >=5.0.0-next.0".

