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
Update SvelteKit anchor tag props #1682
Conversation
sveltekit:noscroll -> data-sveltekit-noscroll sveltekit:prefetch -> data-sveltekit-prefetch sveltekit:reload -> data-sveltekit-reload
Not sure how to fix the 2 failing tests. Should this interface SvelteKitAnchorProps {
// transformed from data-sveltekit-noscroll so it should be camel case
dataSveltekitNoscroll?: true | undefined | null;
dataSveltekitPrefetch?: true | undefined | null;
dataSveltekitReload?: true | undefined | null;
} be this? interface SvelteKitAnchorProps {
// transformed from data-sveltekit-noscroll so it should be camel case
'data-sveltekit-noscroll'?: true | undefined | null;
'data-sveltekit-prefetch'?: true | undefined | null;
'data-sveltekit-reload'?: true | undefined | null;
} |
|
Not sure how to fix this:
|
The __sveltets_2_empty is added here. We probably need to add an exception if we want to type-check it.
I am also wondering if we should remove the old one from |
Seems ok to me. Breaking changes were what people using SvelteKit early signed up for. |
@jasonlyu123 Could you elaborate? Should the language-tools/packages/svelte2tsx/test/htmlx2jsx/samples/sveltekit-anchor-attrs/expectedv2.js Line 4 in 282df00
Or the actual changed? |
The |
Thanks for finishing @dummdidumm! 👍 |
Closes #1680.