From 2bf6449c7c41a0fc3dcd4b625cb8ce2c6697db84 Mon Sep 17 00:00:00 2001 From: Puru Vijay Date: Sat, 1 Apr 2023 00:55:50 +0530 Subject: [PATCH] Hack the build into working --- sites/svelte.dev/vite.config.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sites/svelte.dev/vite.config.js b/sites/svelte.dev/vite.config.js index 626bf8a8ec..f8d12e4baf 100644 --- a/sites/svelte.dev/vite.config.js +++ b/sites/svelte.dev/vite.config.js @@ -50,6 +50,22 @@ const config = { fs: { strict: false } + }, + // !HACK: Remove once vite 4.3 is out + worker: { + plugins: [ + { + name: 'remove-manifest', + configResolved(c) { + const manifestPlugin = c.worker.plugins.findIndex((p) => p.name === 'vite:manifest'); + c.worker.plugins.splice(manifestPlugin, 1); + const ssrManifestPlugin = c.worker.plugins.findIndex( + (p) => p.name === 'vite:ssr-manifest' + ); + c.plugins.splice(ssrManifestPlugin, 1); + } + } + ] } };