From 4441831a60ca26da39408ff14594ed09ab26a781 Mon Sep 17 00:00:00 2001 From: Emmanuel Krebs Date: Wed, 27 Nov 2024 10:32:34 +0100 Subject: [PATCH] fix: remove workaround --- vite.config.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 8c18db6..6527477 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,19 +7,10 @@ import { resolve } from 'path'; import manifestJson from './manifest.json'; const manifest = manifestJson as ManifestV3Export; -const viteManifestHackIssue846 = { - // Workaround from https://github.com/crxjs/chrome-extension-tools/issues/846#issuecomment-1861880919. - name: 'manifestHackIssue846', - renderCrxManifest(_manifest, bundle) { - bundle['manifest.json'] = bundle['.vite/manifest.json']; - bundle['manifest.json'].fileName = 'manifest.json'; - delete bundle['.vite/manifest.json']; - }, -}; // https://vitejs.dev/config/ export default { - plugins: [react(), svgr({ include: '**/*.svg' }), viteManifestHackIssue846, crx({ manifest })], + plugins: [react(), svgr({ include: '**/*.svg' }), crx({ manifest })], resolve: { alias: [ { find: 'public', replacement: resolve(__dirname, './public') },