Repository navigation
fix: get the site building for the version-3 branch - #2076
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
teemingc
commented
Jul 3, 2026
| ## What's new in SvelteKit | ||
|
|
||
| - You can now pass your SvelteKit config directly to the Vite plugin, so a separate `svelte.config.js` is no longer required, as a preview of how Kit 3 will require config to live in `vite.config.js` (**2.62.0**, [Docs](https://svelte.dev/docs/kit/configuration), [#15944](https://github.com/sveltejs/kit/pull/15944)) | ||
| - Experimental explicit environment variables let you declare and type your env vars in one place, as a preview of how `$env/*` will work in SvelteKit 3 (**2.63.0**, [Docs](https://svelte.dev/docs/kit/environment-variables#Explicit-environment-variables), [#15934](https://github.com/sveltejs/kit/pull/15934)) |
Member
Author
There was a problem hiding this comment.
This id doesn't exist on the version-3 branch so we may as well get rid of it
teemingc
commented
Jul 3, 2026
| // this monstrosity is required for twoslash (which uses `require`) to work during prerendering. | ||
| // it is brittle and may not work in perpetuity but i'm not sure what a better solution would be | ||
| if (chunk.type === 'chunk' && chunk.name === 'renderer') { | ||
| return `import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);`; |
Member
Author
There was a problem hiding this comment.
This workaround is no longer needed and is causing this build error https://vercel.com/svelte/svelte-dev/3do19ZkuWZBoM6FUC4fxDnJTzoRT#L682
9 of 10 tasks
manuel3108
approved these changes
Jul 3, 2026
Rich-Harris
added a commit
to sveltejs/kit
that referenced
this pull request
Jul 7, 2026
closes #15406 Requires merging the following before the docs can build successfully: - [x] sveltejs/svelte.dev#1845 - [x] sveltejs/svelte.dev#2075 - [x] sveltejs/svelte.dev#2076 - [x] sveltejs/cli#1160 --- ### 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:`. ### Edits - [x] Please ensure that 'Allow edits from maintainers' is checked. PRs without this option may be closed. --------- Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Few fixes to try and get this building successfully again. Also requires merging sveltejs/cli#1160