File tree Expand file tree Collapse file tree 3 files changed +31
-24
lines changed
packages/vite-plugin-web-extension Expand file tree Collapse file tree 3 files changed +31
-24
lines changed Original file line number Diff line number Diff line change 49
49
"lodash.uniqby" : " ^4.7.0" ,
50
50
"md5" : " ^2.3.0" ,
51
51
"vite" : " ^5.0.0 || ^4.1.4" ,
52
- "web-ext-option-types" : " 8.3.0 " ,
52
+ "web-ext-option-types" : " 8.3.1 " ,
53
53
"web-ext-run" : " ^0.2.1" ,
54
54
"webextension-polyfill" : " ^0.10.0" ,
55
55
"yaml" : " ^2.3.4"
Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ import type Browser from "webextension-polyfill";
4
4
5
5
export type Manifest = any ;
6
6
7
+ export type WebExtConfig = Omit < webext . RunOptions , "reload" > & {
8
+ /**
9
+ * @deprecated Use `firefoxBinary` instead.
10
+ */
11
+ firefox ?: string ;
12
+ }
13
+
7
14
export interface UserOptions {
8
15
/**
9
16
* The path to your manifest.json or a function that returns your manifest as a JS object. It's a
@@ -86,7 +93,7 @@ export interface UserOptions {
86
93
* Optional startup configuration for web-ext. For list of options, see
87
94
* <https://github.com/mozilla/web-ext/blob/666886f40a967b515d43cf38fc9aec67ad744d89/src/program.js#L559>.
88
95
*/
89
- webExtConfig ?: webext . RunOptions ;
96
+ webExtConfig ?: WebExtConfig ;
90
97
91
98
/**
92
99
* Output path to a JSON file containing information about the generated bundles.
@@ -119,7 +126,7 @@ export interface ResolvedOptions {
119
126
scriptViteConfig ?: vite . InlineConfig ;
120
127
verbose : boolean ;
121
128
disableColors : boolean ;
122
- webExtConfig ?: any ;
129
+ webExtConfig ?: WebExtConfig ;
123
130
bundleInfoJsonPath ?: string ;
124
131
onBundleReady ?: ( ) => void | Promise < void > ;
125
132
}
You can’t perform that action at this time.
0 commit comments