-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
DRY things out and tidy up #454
Conversation
`); | ||
|
||
write_if_changed(`${output}/service-worker.js`, code); | ||
// let files = ['service-worker-index.html']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This big block of commented-out code looks suspicious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it's not actually called anywhere at the moment, that'll be the focus of #10, which i was hoping to make a start on very soon
Found a few opportunities to improve the
packages/kit
code while working on #453:@sveltejs/kit/ssr
(formerly@sveltejs/kit/renderer
)src
folder — we now havecore
,runtime
,cli.js
andtypes.d.ts
src/runtime
folder containsclient
andserver
directories (stuff that Kit needs in each of those environments —server/index.js
is the entry point for@sveltejs/kit/ssr
), theapp
directory which is exposed in both cases, and a couple of module (paths.js
andload.js
) that are needed in both environments but shouldn't be accessible to the developerMuch happier with the state of things now.