Skip to content
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(dev): re-enable manifestLoaderPlugin after child builds are done #234

Merged
merged 2 commits into from
Jan 5, 2025

Conversation

aleclarson
Copy link
Contributor

When the Vite dev server restarts, this plugin was not working as expected. Most notably, the browser would not be re-opened, which is what drew my attention to this issue.

The fix is pretty straight-forward. Avoid keeping process.env.VITE_PLUGIN_WEB_EXTENSION_CHILD_BUILD set after the child builds have finished. This PR sets it to an empty string, so the manifestLoaderPlugin can be called again while the dev server is restarting.

Copy link
Owner

@aklinker1 aklinker1 left a comment

Choose a reason for hiding this comment

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

Thanks! I broke the docs, let me fix that then I'll merge.

@aklinker1 aklinker1 merged commit a50ed93 into aklinker1:main Jan 5, 2025
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