non-module files used for script injection doesn't live reload/update in dev mode #1213
Unanswered
shamimurrahman19
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
script1.tsx is injected in the webpage.
It's called with chrome.runtime.getURL("path to script1.tsx"), and not imported as module.
so, It's not live reloading when I change and save code in script1.tsx
even after extension reload from extension manager, script1.tsx still keeps using old code and doesn't update.
if I turn script1.tsx into a module and import it in content.tsx then script1.tsx live reloads but then the injected script doesn't work.
Adding script1.tsx path in tsconfig.json's compilerOptions causes the same problem.
// injection code from content.tsx
// script1.tsx full code
Beta Was this translation helpful? Give feedback.
All reactions