Use JS extensions for page entrypoints #20
matthewmueller
announced in
Proposals
Replies: 1 comment
-
For now, this has been changed to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now we have entrypoints that have the following format:
bud/view/{route}/_{action}.{ext}
, so forbud/view/index.svelte
, the entrypoint would look likebud/view/_index.svelte
.This was nice for understanding the mapping, but doesn't play well with tools that use the extension to determine the content-type, since those served svelte files are actually javascript. I ran into this while using https://github.com/tj/staticgen.
Let's change this, perhaps:
.bud/view/.index.svelte.js
: for the entrypoint toview/index.svelte
(includes hydration + event sourcing).bud/view/index.svelte.js
: the compiledview/index.svelte
component that can be imported dynamicallyBeta Was this translation helpful? Give feedback.
All reactions