Skip to content

Conversation

@dummdidumm
Copy link
Member

Rename all _sveltets* ambient declarations to _sveltets_1* . This way, we avoid the situation where multiple ambient versions of svelte2tsx are loaded and their declarations conflict each other. #1059 for an example bug that stems from it.
The other breaking change is that svelte2tsx no longer provides a default export, svelte2tsx now is a named export. This opens up the possibility to export other utility functions alongside it.

@jasonlyu123 FYI we discussed making these imports, but I dismissed the solution as the import messes with the language server when doing import completions, "organize imports" etc.

Simon Holthausen added 3 commits June 20, 2021 16:22
Rename all __sveltets_* ambient declarations to __sveltets_1_* . This way, we avoid the situation where multiple ambient versions of svelte2tsx are loaded and their declarations conflict each other. sveltejs#1059 for an example bug that stems from it.
The other breaking change is that svelte2tsx no longer provides a default export, svelte2tsx now is a named export. This opens up the possibility to export other utility functions alongside it.
This is handled by Prettier already
@dummdidumm dummdidumm merged commit 4058c3b into sveltejs:master Jun 20, 2021
@dummdidumm dummdidumm deleted the svelte2tsx-ambientdeclarations branch June 20, 2021 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant