Skip to content

feat: run analysis and prerender in the environment#16311

Open
teemingc wants to merge 18 commits into
fetchable-dev-environmentfrom
analyse-prerender-environment
Open

feat: run analysis and prerender in the environment#16311
teemingc wants to merge 18 commits into
fetchable-dev-environmentfrom
analyse-prerender-environment

Conversation

@teemingc

@teemingc teemingc commented Jul 10, 2026

Copy link
Copy Markdown
Member

This PR refactors the analysis and prerender code to happen inside of the configured server Vite environment so that it has access to platform runtime APIs. This avoids the "reference not found" error that happens when evaluating the server files in the wrong runtime (Node.js)

@pkg-svelte-dev

pkg-svelte-dev Bot commented Jul 10, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from c5e9b9e:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/c5e9b9ebfaabc9951861b68cbc99f37bb703d4cc

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16311

@changeset-bot

changeset-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c5e9b9e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Major

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

@svelte-docs-bot

Copy link
Copy Markdown

@teemingc
teemingc marked this pull request as ready for review July 10, 2026 11:16
Comment thread packages/kit/src/exports/vite/build/vite_server.js

@vercel vercel Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

The sveltekit_ipc virtual module emits an unquoted URL string into a let initializer, producing invalid JavaScript that fails to parse.

Fix on Vercel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant