Skip to content

Commit 50bd4ba

Browse files
committed
svelte: Use @poppanator/sveltekit-svg for inline SVG support
# Conflicts: # pnpm-lock.yaml # svelte/package.json # svelte/vite.config.ts
1 parent 7eaaf73 commit 50bd4ba

File tree

4 files changed

+91
-1
lines changed

4 files changed

+91
-1
lines changed

pnpm-lock.yaml

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

svelte/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@eslint/compat": "2.0.0",
2020
"@eslint/js": "9.39.1",
2121
"@ianvs/prettier-plugin-sort-imports": "4.7.0",
22+
"@poppanator/sveltekit-svg": "^6.0.1",
2223
"@sveltejs/adapter-static": "3.0.10",
2324
"@sveltejs/kit": "2.49.2",
2425
"@sveltejs/vite-plugin-svelte": "6.2.1",

svelte/src/app.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import '@poppanator/sveltekit-svg/dist/svg.d.ts';
2+
13
// See https://svelte.dev/docs/kit/types#app.d.ts
24
// for information about these interfaces
35
declare global {

svelte/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import svg from '@poppanator/sveltekit-svg';
12
import { sveltekit } from '@sveltejs/kit/vite';
23
import { playwright } from '@vitest/browser-playwright';
34
import { defineConfig } from 'vitest/config';
45

56
export default defineConfig({
6-
plugins: [sveltekit()],
7+
plugins: [sveltekit(), svg()],
78

89
test: {
910
expect: { requireAssertions: true },

0 commit comments

Comments
 (0)