Skip to content

Commit

Permalink
fix: remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
e-krebs committed Nov 27, 2024
1 parent feeae58 commit 4441831
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') },
Expand Down

0 comments on commit 4441831

Please sign in to comment.