Skip to content
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

Always put <svelte:options> at top of file #73

Closed
tyilo opened this issue Jan 7, 2020 · 4 comments · Fixed by #178
Closed

Always put <svelte:options> at top of file #73

tyilo opened this issue Jan 7, 2020 · 4 comments · Fixed by #178
Labels
enhancement New feature or request

Comments

@tyilo
Copy link

tyilo commented Jan 7, 2020

I think it would be prettier if the <svelte:options> tag was always at the top of file, before scripts and styles.

Maybe <svelte:head> should also be at the top (but not any of the other <svelte:...> tags)?

@rixo
Copy link

rixo commented Mar 1, 2020

Currently source maps are off when <script≥ is not at the very top... Maybe wait for this to be fixed before? sveltejs/svelte#3906

@Conduitry Conduitry added the enhancement New feature or request label May 8, 2020
@dummdidumm
Copy link
Member

I'm against <svelte:head> but I think <svelte:options> makes sense.

@aabounegm
Copy link

Maybe wait for this to be fixed before? sveltejs/svelte#3906

The referenced issue has been fixed. Any updates on this one?

@dummdidumm
Copy link
Member

From #165 : We could also make this configurable by enhancing the sort order.

dummdidumm added a commit that referenced this issue Jan 5, 2021
Fixes #73  

### BREAKING CHANGE

`svelte:options` is now part of `svelteSortOrder`. Default sort order is now `options-scripts-markup-styles`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants