Skip to content

Experimental: Fix reloading not working for content_scripts indexes #239

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

Closed
wants to merge 17 commits into from

Conversation

cezaraugusto
Copy link
Member

Right now, indexes defined in content_scripts files are not reloaded at all for framework-specific templates (we must import a ContentApp for them) and have a wrong behavior (does not clean-up previous HMR code) for non-framework templates. This PR is an attempt to fix that.

Related to awesome-webextension/webpack-target-webextension#46

@cezaraugusto cezaraugusto force-pushed the better-content-scripts branch from 4a43088 to 86d3054 Compare February 25, 2025 03:09
@cezaraugusto cezaraugusto force-pushed the better-content-scripts branch from 86d3054 to 4fcc39d Compare February 25, 2025 03:15
Copy link

pkg-pr-new bot commented Feb 25, 2025

Open in Stackblitz

npm i https://pkg.pr.new/extension-js/extension.js/extension@239
npm i https://pkg.pr.new/extension-js/extension.js/extension-create@239
npm i https://pkg.pr.new/extension-js/extension.js/extension-develop@239

commit: ba27af3

Copy link

pkg-pr-new bot commented Feb 25, 2025

Open in Stackblitz

npm i https://pkg.pr.new/extension-js/extension.js/extension@239
npm i https://pkg.pr.new/extension-js/extension.js/extension-create@239
npm i https://pkg.pr.new/extension-js/extension.js/extension-develop@239

commit: 70fac81

@cezaraugusto cezaraugusto force-pushed the main branch 2 times, most recently from f53897b to b218988 Compare April 5, 2025 00:34
@cezaraugusto
Copy link
Member Author

this is fixed in #256

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.

1 participant