StarkShang / vite-plugin-chrome-extension

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

Permission Management detection misdetection #22

Open riderx opened 2 years ago

riderx commented 2 years ago

here is my code in popup:

chrome.management.getSelf(() => {
// my code
})

plugin detect management permission but it doesn't need it as writed there management.uninstallSelf, and management.getSelf do not require the management permission.

Toumash commented 2 years ago

What is the connection with this problem to the vite-plugin-chrome-extension?

riderx commented 2 years ago

@Toumash for me, vite-plugin-chrome-extension generates the manifest file.

And the generation is broken.

As I said chrome.management.getSelf shouldn't generate the management permission, but it does

Maybe there is a submodule that handles it, could you share the module that does it?

Toumash commented 2 years ago

I've created a PR #26 for that just out of curiosity, but i need help in completing that.