You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Content script loader prevents the content script from running synchronously in production even if there are no imports.
Describe the proposed solution
Title pretty much says it all, I've seen samrum/vite-plugin-web-extension do this. If the content script doesn't import anything, then I think the loader should be unnecessary in build. In dev, I believe it's still needed for HMR.
Alternatives considered
Do this manually in userland, i.e. write a CrxPlugin that finds the path to the actual content script (which the content script loader imports) and rewrite the manifest to point to it directly
Importance
would make my life easier
The text was updated successfully, but these errors were encountered:
Describe the problem
Content script loader prevents the content script from running synchronously in production even if there are no imports.
Describe the proposed solution
Title pretty much says it all, I've seen samrum/vite-plugin-web-extension do this. If the content script doesn't import anything, then I think the loader should be unnecessary in build. In dev, I believe it's still needed for HMR.
Alternatives considered
Do this manually in userland, i.e. write a CrxPlugin that finds the path to the actual content script (which the content script loader imports) and rewrite the manifest to point to it directly
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: