@svelte-put/preprocess-inline-svg
GithubCompatible with or powered directly by Svelte runes.
@svelte-put/inline-svg
Migration to Make sure you have version 4 of @svelte-put/inline-svg
installed:
npm install --save-dev @svelte-put/inline-svg
pnpm add -D @svelte-put/inline-svg
yarn add -D @svelte-put/inline-svg
Simply update the import path of the preprocessor in your svelte.config.js
:
import inlineSvg from '@svelte-put/preprocess-inline-svg';
import inlineSvg from '@svelte-put/inline-svg/preprocessor';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [
inlineSvg(/** truncated config */),
// other preprocessors
],
};
export default config;
Happy migrating 😅