Skip to content

Comments

chore: update wxt and fix dev config#878

Merged
killergerbah merged 5 commits intomainfrom
chore/update-wxt-and-fix-dev-config
Feb 14, 2026
Merged

chore: update wxt and fix dev config#878
killergerbah merged 5 commits intomainfrom
chore/update-wxt-and-fix-dev-config

Conversation

@mwojick
Copy link
Collaborator

@mwojick mwojick commented Feb 14, 2026

The dev and production versions were conflicting in weird ways which basically forced you to uninstall the production one before loading in the dev one. This allows them to be installed side by side (though you probably should only enable one at a time), and adds a Dev label to easily tell them apart. Chrome doesn't need an explicit key in dev mode since it seems to make a stable one based on the path name.

Added bonus is I found out about artifactTemplate and sourcesTemplate to override the default zip names that were pulling from the package.json before (i.e. projectextension).

@mwojick mwojick requested a review from killergerbah February 14, 2026 06:21
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 14, 2026

Deploying asbplayer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1f64ad5
Status: ✅  Deploy successful!
Preview URL: https://f482e81a.asbplayer.pages.dev
Branch Preview URL: https://chore-update-wxt-and-fix-dev.asbplayer.pages.dev

View logs

Copy link
Owner

@killergerbah killergerbah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, yea this will be useful. I've probably wasted a lot of time uninstalling the dev version so I could install the prod version and vice versa.

manifest: ({ browser, mode }) => {
const version = '1.14.0';
const isDev = mode === 'development';
const name = `${extName}${isDev ? ' (Dev)' : ''}: Language-learning with subtitles`;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract this part into variable?

isDev ? ' (Dev)' : ''

IMO that would be more readable

version: '1.14.0',
action: { default_title: 'asbplayer' },
version,
action: { default_title: `${extName}${isDev ? ' (Dev)' : ''}` },
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use that variable here too

update_url: 'https://killergerbah.github.io/asbplayer/firefox-extension-updates.json',
id: geckoId,
...(isDev
? {}
Copy link
Owner

@killergerbah killergerbah Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general wondering if we can group these isDev branches together. Since we have geckoId assigned using isDev ternary expression, and update_url is also assigned using isDev ternary expression, just in a different place. In case it's possible to make things more readable without a lot of effort.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I think I have something that's a bit cleaner now, though with the nested conditionals it's still not perfect

@mwojick mwojick requested a review from killergerbah February 14, 2026 20:11
@killergerbah killergerbah merged commit cd9e39a into main Feb 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants