Open mp3por opened 2 days ago
@mp3por i can see the loader is used to support HMR in dev. I'm not sure why it is in production build Explained here: https://github.com/crxjs/chrome-extension-tools/issues/391#issuecomment-1142197493 similiar issue here: https://github.com/crxjs/chrome-extension-tools/issues/391
Looks like theres no way to disable it. We probably would need to make a PR with the option to do so.
Should we go for different dev/prod experience or should we go for an option like a switch?
Build tool
Rollup
Where do you see the problem?
Describe the bug
At the moment when I run
vite build
I get acontent-script.ts-loader.js
file which looks something like this:Because of this I receive the following error in the browser
I use the following content_script_policy:
How to tell the plugin to not add this
loader
file because i don't need it in production ?Reproduction
asdjioasd
Logs
No response
System Info
Severity
blocking all usage of RPCE