diff --git a/package.json b/package.json index 6088f1cc..ea960c40 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "ts-node": "^10.4.0", "tslib": "^2.3.1", "typescript": "5.2.2", - "vite": "^4.5.0" + "vite": "5.0.5" }, "dependencies": { "@connext/sdk-core": "2.1.3-alpha.1", @@ -90,7 +90,7 @@ "stream-browserify": "^3.0.0", "stream-http": "^3.2.0", "svelte-i18n": "^4.0.0", - "svelte-routing": "^2.6.0", + "svelte-routing": "2.10.0", "tailwindcss": "^3.3.5", "url": "^0.11.0", "util": "^0.12.4", diff --git a/vite.config.mjs b/vite.config.mjs index 224e3435..87161428 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -9,11 +9,14 @@ const development = MODE === 'development'; export default defineConfig({ plugins: [ development && - nodePolyfills({ - include: ['node_modules/**/*.js', new RegExp('node_modules/.vite/.*js')], - }), + nodePolyfills({ + include: ['node_modules/**/*.js', new RegExp('node_modules/.vite/.*js')], + }), svelte(), ], + optimizeDeps: { + exclude: ['svelte-routing'], + }, resolve: { alias: { crypto: 'crypto-browserify',