-
-
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
SSR intercepting extensions other than .html #939
Comments
esarbanis
added a commit
to esarbanis/svelte
that referenced
this issue
Nov 22, 2017
…tml, in ssr. Proposal for sveltejs#939
esarbanis
changed the title
SSR intercepting extensions other than
SSR intercepting extensions other than .html
Nov 22, 2017
.html
esarbanis
added a commit
to esarbanis/svelte
that referenced
this issue
Nov 22, 2017
…tml, in ssr. Proposal for sveltejs#939
esarbanis
added a commit
to esarbanis/svelte
that referenced
this issue
Nov 23, 2017
…tml, in ssr. Proposal for sveltejs#939
esarbanis
added a commit
to esarbanis/svelte
that referenced
this issue
Nov 23, 2017
…tml, in ssr. Proposal for sveltejs#939
Closed via #940 |
sacrosanctic
pushed a commit
to sacrosanctic/svelte
that referenced
this issue
Dec 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently there is no way to intercept ssr components, if they do not have
.html
extension. There are situations, such as the one I am in now, that not all.html
files a svelte component. In order to differentiate them from the plain html files I have given them the.svelte
extension.I propose to have a way of intercepting more than just one file extension like so:
require('svelte/ssr/register')(['.svelte'])
, but leave the current default one as well, for backwards compatibility.So, basically
require('svelte/ssr/register')
will register.html
andrequire('svelte/ssr/register')(['.html', '.svelte'])
will register both.html
and.svelte
The text was updated successfully, but these errors were encountered: