diff --git a/svelte.config.js b/svelte.config.js index 675f40a..50ce0d9 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,4 @@ -import preprocess from 'svelte-preprocess' +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; import adapter from '@sveltejs/adapter-static' /** @type {import('@sveltejs/kit').Config} */ @@ -9,9 +9,7 @@ const config = { }), }, preprocess: [ - preprocess({ - postcss: true, - }), + vitePreprocess() ], } diff --git a/vite.config.js b/vite.config.js index a2b09ed..8afd2d0 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,8 +1,6 @@ import { sveltekit } from '@sveltejs/kit/vite' import { defineConfig } from 'vite' import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill' -import inject from '@rollup/plugin-inject' -import path from 'path' export default defineConfig({ plugins: [sveltekit()], @@ -18,16 +16,4 @@ export default defineConfig({ ], }, }, - build: { - rollupOptions: { - plugins: [ - inject({ - window: path.resolve('src/lib/window.js'), - }), - ], - }, - }, - ssr: { - noExternal: ['@stellar/typescript-wallet-sdk-km', '@albedo-link/intent'], - }, })