-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use target
from webExtConfig if browser
option is undefined
#232
Changes from all commits
284992d
be7b4f4
eb12cb1
1c20eb0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ export interface UserOptions { | |
* | ||
* @default "chrome" | ||
*/ | ||
browser?: string; | ||
browser?: 'chrome' | 'firefox' | (string & {}) | null; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a TypeScript trick that provides auto-completion for some values while still allowing any string There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting, didn't know this worked... I've only used branded types with a property inside the |
||
|
||
/** | ||
* Do not validate your manifest to make sure it can be loaded by browsers. | ||
|
@@ -119,7 +119,7 @@ export interface ResolvedOptions { | |
additionalInputs: string[]; | ||
disableAutoLaunch: boolean; | ||
watchFilePaths: string[]; | ||
browser?: string; | ||
browser?: 'chrome' | 'firefox' | (string & {}) | null; | ||
skipManifestValidation: boolean; | ||
printSummary: boolean; | ||
htmlViteConfig?: vite.InlineConfig; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should deprecate the
browser: null
setting. It's a bit cryptic 😅There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, yeah, wonder what I was thinking lol. Let's leave it for now.