fix: add patchPackage to fix Chrome 130+ compatability

This commit is contained in:
sethburkart123
2024-10-20 11:24:30 +11:00
parent 052c06a04d
commit cdfa6723ef
2 changed files with 68 additions and 1 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import { defineConfig } from 'vite';
import { join, resolve } from 'path';
import { updateManifestPlugin } from './lib/patchPackage';
import { base64Loader } from './lib/base64loader';
import type { BuildTarget } from './lib/types';
@@ -31,7 +32,8 @@ export default defineConfig({
crx({
manifest: targets.find(t => t.browser === mode.toLowerCase())?.manifest ?? chrome.manifest,
browser: mode.toLowerCase() === "firefox" ? "firefox" : "chrome"
})
}),
updateManifestPlugin()
],
root: resolve(__dirname, './src'),
resolve: {