diff --git a/frontend/package.json b/frontend/package.json index 887513e7..b0f280ed 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -10,7 +10,7 @@ "build": "npm run wasm && vite build", "preview": "vite preview", "test": "npm run test:integration && npm run test:unit", - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check": "npm run wasm && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "lint": "prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check . && eslint .", "format": "prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .", @@ -57,12 +57,11 @@ "vite": "^5.1.4", "vite-plugin-top-level-await": "^1.4.1", "vite-plugin-wasm": "^3.3.0", - "vite-plugin-wasm-pack": "^0.1.12", - "vitest": "^1.0.4" + "vitest": "^1.0.4", + "client-wasm": "^0.1.0" }, "type": "module", "dependencies": { - "client-wasm": "^0.1.0", "colord": "^2.9.3", "file-saver": "^2.0.5", "highlight.js": "^11.9.0", diff --git a/frontend/src/routes/settings/sites/+page.svelte b/frontend/src/routes/settings/sites/+page.svelte index 820f09f3..d7bb92b1 100644 --- a/frontend/src/routes/settings/sites/+page.svelte +++ b/frontend/src/routes/settings/sites/+page.svelte @@ -7,7 +7,7 @@ import { hostRankingsStore } from '$lib/stores'; import { flip } from 'svelte/animate'; import { derived } from 'svelte/store'; - import init, {Optic} from 'client-wasm'; + import init, { Optic } from 'client-wasm'; import { onMount } from 'svelte'; onMount(async () => { diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index dd578d53..8118f176 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -2,12 +2,10 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vitest/config'; import Icons from 'unplugin-icons/vite'; import wasm from 'vite-plugin-wasm'; -import wasmPack from 'vite-plugin-wasm-pack'; import topLevelAwait from 'vite-plugin-top-level-await'; export default defineConfig({ plugins: [ - wasmPack("../crates/client-wasm"), wasm(), topLevelAwait(), sveltekit(),