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
I have this script that have to be attached as script element on host page because I need to register a global component (which can not be done by running the script in the content script). But the script have ReactJs in it so it need to be bundled with vite so that the browser can understand.
Currently I can not get the file to be HMR during development so I have to go through this painful manual procedure instead:
Make change to the script
Run a vite build command separately
Update the output file path mentioned in the manifest.json
Have CRXJS already supported this without me knowing?
Describe the proposed solution
If possible, please give me the ability to HMR with specified web_resources by registering them in the vite.config.ts
Describe the problem
I have this script that have to be attached as script element on host page because I need to register a global component (which can not be done by running the script in the content script). But the script have ReactJs in it so it need to be bundled with vite so that the browser can understand.
Currently I can not get the file to be HMR during development so I have to go through this painful manual procedure instead:
Have CRXJS already supported this without me knowing?
Describe the proposed solution
If possible, please give me the ability to HMR with specified web_resources by registering them in the vite.config.ts
Alternatives considered
I am considering making a separate HMR server while waiting for our discussion
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: