-
Notifications
You must be signed in to change notification settings - Fork 176
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
Content scripts not updating in vite #492
Comments
Note that it works properly when it's injected via manifest.json
|
This should be fixed in |
I'm currently facing the same issue and it is very annoying, is it being fixed? |
It's fixed for me, is the version installed |
Ok I'll check it out, Thanks |
Hi, that's works fine when the world for JS is "ISOLATED" (default). If is set to "MAIN" the loader not works, because the chorme object isn't exists. I think in case of a script injection, the loader is not necessary. Exemple that fails
|
Build tool
Vite
Where do you see the problem?
Describe the bug
I have a script, written in typescript, that is being imported in
background.ts
withimport myScript from "./scripts/content-script?script";
and then run on the page withAny time I edit the content of the file, the file in
dist/scripts
stays the same, and the file in theSources > Content Scripts
tab stays the same. It's only after a full vite kill + restart and a refresh of the extension that it starts working.Reproduction
See above, repo unfortunately is not public.
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: