StarkShang / vite-plugin-chrome-extension

A vite plugin to bundle chrome extensions for Manifest V3.
MIT License
460 stars 68 forks source link

error in "content_security_policy" #37

Open grgbrasil opened 5 months ago

grgbrasil commented 5 months ago

the plugin expect string, but in v.3 is object:

https://developer.chrome.com/docs/extensions/reference/manifest/content-security-policy?hl=pt-br

grgbrasil commented 5 months ago

solution:

index-cjs.js

change line 1485:

content_security_policy: { type: "string",

to

content_security_policy: { type: "object",