PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.03k stars 346 forks source link

[BUG] Content scripts section is not updated in Manifest file for MAIN World #892

Closed sudheersan closed 6 months ago

sudheersan commented 6 months ago

What happened?

Plasmo Version : 0.84.2

Add below code in contents/sample.ts `import type { PlasmoCSConfig } from 'plasmo';

export const config: PlasmoCSConfig = { matches: ['https:///'], world: 'MAIN', run_at: 'document_start', };`

Ran below command pnpm dev or pnpm build

sample.js is not added in manifest.json under content_scripts section. If I remove world:'MAIN', it's working fine.

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

(OPTIONAL) Contribution

Code of Conduct

sudheersan commented 6 months ago

Even-though it's not adding in the manifest, functionality is working fine.

alexzurbonsen commented 1 month ago

I am experiencing the same issue (scripts do not get added if world is MAIN). But for me, functionality is not working. I wonder how it would?

Did you do anything else to resolve this? Thanks!

felicio commented 1 month ago

@sudheersan please, could you reopen this?