experimental
Enables Svelte and SvelteKit experimental features, and can opt your project into their next pre-release versions.
Usage
npx sv add experimentalWhat you get
- the selected experimental flags set in your config
- optionally
@sveltejs/kit(and your adapter) moved to theirnextline
Options
versions
Which packages to move to their next pre-release version:
kit—@sveltejs/kit@next(also bumps your adapter and required peers)
npx sv add experimental="versions:kit"features
Which experimental flags to enable:
async—awaitin componentsremoteFunctions— remote functionsexplicitEnvironmentVariables— explicit environment variables (SvelteKit^2only)handleRenderingErrors— rendering error boundariesforkPreloads— forked preloading
npx sv add experimental="features:async,remoteFunctions"