@sveltejs/kit@3.0.0-next.10
Breaking Changes📦 sveltekitView on GitHub →
⚠ 1 breaking🐛 2 fixes🔧 2 symbols
Summary
This release moves `defineEnvVars` to a new location and includes fixes for redirect handling and plugin warnings. It also includes a performance improvement by skipping import graph collection in non-client environments.
⚠️ Breaking Changes
- The `defineEnvVars` function has been moved from the root of `@sveltejs/kit` to `@sveltejs/kit/env`. Update your imports accordingly.
Migration Steps
- Update imports from `import { defineEnvVars } from '@sveltejs/kit';` to `import { defineEnvVars } from '@sveltejs/kit/env';`.
🐛 Bug Fixes
- The `data:` protocol URLs are now treated as external for redirects.
- A warning is now issued if plugins are using `transformIndexHtml`.