breaking: replace builder.generateManifest with builder.generateServer and builder.getManifest - #16843
breaking: replace builder.generateManifest with builder.generateServer and builder.getManifest#16843ottomated wants to merge 12 commits into
builder.generateManifest with builder.generateServer and builder.getManifest#16843Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/5c1787ec380d6590208a2f20c0eae80bedcf3833Open in |
🦋 Changeset detectedLatest commit: 5c1787e The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Nice! This feels way better than what we have now. A few places where I think we could potentially go further:
For the sake of the diff it might be easier to keep stuff under |
Makes sense, maybe
I don't think we can do that; that function is used to generate a bunch of serverless functions in a magic netlify folder, each with a unique set of routes. They would each need to write a
I somehow missed that (side note, it would make my life a lot easier on the cloudflare stuff if we could somehow pass the svelte config to the adapter function before
Makes sense to me. I'll do a second pass on all of this |
6ecf024 to
9884263
Compare
9884263 to
3ae5f22
Compare
breaking #16843 into smaller pieces This PR just removes all adapter code that accesses SSRManifest. #16876 is stacked on top of this and actually makes `SSRManifest` private, which is the end goal. --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [x] This message body should clearly illustrate what problems it solves. - [ ] Ideally, include a test that fails without this PR but passes with it. ### Tests - [x] Run the tests with `pnpm test` and lint the project with `pnpm lint` and `pnpm check` ### Changesets - [x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running `pnpm changeset` and following the prompts. Changesets that add features should be `minor` and those that fix bugs should be `patch`. Please prefix changeset messages with `feat:`, `fix:`, or `chore:`. --------- Co-authored-by: Tee Ming <chewteeming01@gmail.com>
alternative to #16827
Removes
SSRManifestas a public api. Previously, adapters were using it directly; now they have a more limited api that mirrors$app/manifest. This ends up simplifying the code that adapters have to generate, because they only have to worry about a single server module vs server + manifest. It also removes the need formanifest._.fooin the internal code, which is nice.Technically, SSRManifest is still used by some adapters (search
server.manifestto find the uses). I don't know if we want to go all the way here and replace those with, i.e. rolldowndefines?Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.