diff --git a/packages/frontend/package.json b/packages/frontend/package.json index ed55811..d067426 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -36,7 +36,8 @@ "tailwindcss": "^4.0.0", "tw-animate-css": "^1.3.8", "typescript": "^5.9.2", - "vite": "^7.1.4" + "vite": "^7.1.4", + "vite-plugin-wasm": "3.5.0" }, "dependencies": { "@directus/sdk": "^20.0.3", diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index 238817b..5a362a2 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -2,20 +2,13 @@ import path from "path"; import tailwindcss from "@tailwindcss/vite"; import { defineConfig } from "vite"; import { sveltekit } from "@sveltejs/kit/vite"; +import wasm from 'vite-plugin-wasm'; export default defineConfig({ - plugins: [sveltekit(), tailwindcss()], + plugins: [sveltekit(), tailwindcss(), wasm()], resolve: { alias: { $lib: path.resolve("./src/lib"), "@": path.resolve("./src/lib") }, }, - ssr: { - noExternal: ["@sexy.pivoine.art/buttplug"], - }, - build: { - rollupOptions: { - external: [/\/wasm\/index\.js/], - }, - }, server: { port: 3000, proxy: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 13a174f..ed9bac0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -139,6 +139,9 @@ importers: vite: specifier: ^7.1.4 version: 7.1.12(@types/node@24.9.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0) + vite-plugin-wasm: + specifier: 3.5.0 + version: 3.5.0(vite@7.1.12(@types/node@24.9.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)) packages: @@ -2090,11 +2093,12 @@ packages: glob@11.0.3: resolution: {integrity: sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==} engines: {node: 20 || >=22} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me globals@15.15.0: resolution: {integrity: sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==} @@ -3112,6 +3116,7 @@ packages: tar@6.2.1: resolution: {integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==} engines: {node: '>=10'} + deprecated: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me tarn@3.0.2: resolution: {integrity: sha512-51LAVKUSZSVfI05vjPESNc5vwqqZpbXCsU+/+wxlOrUjk2SnFTt97v9ZgQrD4YmxYW1Px6w2KjaDitCfkvgxMQ==}