Skip to content

1.22.0

Compare
Choose a tag to compare

Hey! 👋

Today we are happy to bring support for SvelteKit 2!

How to update an existing SvelteKit project

Upgrading to SvelteKit 2 does not require any changes to your Prismic code. It does, however, require updating your packages.

  1. Update your Prismic packages:

    npm install --save-dev slice-machine-ui@latest @slicemachine/adapter-sveltekit@latest
    npm install @prismicio/svelte@latest
  2. Migrate your project to SvelteKit 2 using the official migration guide.

Better support for bootstrapping SvelteKit projects

In addition to supporting SvelteKit 2, we also updated @slicemachine/init to bootstrap existing SvelteKit projects with better Prismic preview support.

Add Prismic to existing projects by running the following command:

npx @slicemachine/init@latest

Note

We recommend starting projects with a Prismic starter.

Starters already contain the configuration needed for a fully-featured website. The updates to @slicemachine/init are for projects that did not start with a Prismic starter.