Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4441831

Browse files
committedNov 27, 2024·
fix: remove workaround
1 parent feeae58 commit 4441831

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed
 

‎vite.config.ts

+1-10
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,10 @@ import { resolve } from 'path';
77
import manifestJson from './manifest.json';
88

99
const manifest = manifestJson as ManifestV3Export;
10-
const viteManifestHackIssue846 = {
11-
// Workaround from https://github.com/crxjs/chrome-extension-tools/issues/846#issuecomment-1861880919.
12-
name: 'manifestHackIssue846',
13-
renderCrxManifest(_manifest, bundle) {
14-
bundle['manifest.json'] = bundle['.vite/manifest.json'];
15-
bundle['manifest.json'].fileName = 'manifest.json';
16-
delete bundle['.vite/manifest.json'];
17-
},
18-
};
1910

2011
// https://vitejs.dev/config/
2112
export default {
22-
plugins: [react(), svgr({ include: '**/*.svg' }), viteManifestHackIssue846, crx({ manifest })],
13+
plugins: [react(), svgr({ include: '**/*.svg' }), crx({ manifest })],
2314
resolve: {
2415
alias: [
2516
{ find: 'public', replacement: resolve(__dirname, './public') },

0 commit comments

Comments
 (0)
Please sign in to comment.