-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Replace __VERSION__ with actual version number #8498
Comments
It probably should be exported with just the type string, the primary use for the version field IMO would be using it for feature detection, and if it's the literal version string, typescript will complain along the lines of
if you try to compare the version string with something. |
Aha! Makes sense. Yeah I think |
Types fixed in 3.59.0. |
Describe the problem
Currently,
svelte/compiler
exportsVERSION
with type__VERSION__
. It causes mismatch like these in upcoming svelte.devDescribe the proposed solution
It'd be great to export it with the current svelte version number. Maybe something in the rollup config? rollup-plugin-replace
Alternatives considered
Let it be? 🤷
Importance
nice to have
The text was updated successfully, but these errors were encountered: