isibbot
isibbot
PD🧩 Plasmo Developers
Created by liam47. on 4/25/2024 in #🔰newbie
Web Worker
@liam47. No expert in plasmo but usually the build tooling just bundles extra debug info like source maps etc that allow you to debug whilst developing. You can tell plasmo to not compile the source maps like so plasmo dev --no-source-maps or add it to the npm scripts for convienence dev:lite: "plasmo dev --no-source-maps" etc. BUT I would say that this is probably not the problem. The bundle size of the plasmo extension isnt really going to slow the perceived load of the extension that much (caveated that I have no knowledge of your code and what your importing etc)
2 replies
PD🧩 Plasmo Developers
Created by isibbot on 5/8/2024 in #🔰newbie
How to share service worker API response to many content scripts
@filthytone Which method of the messaging api would allow a content script to send to a content script? I tried sendToContenScript() https://github.com/PlasmoHQ/plasmo/blob/cff49572a46906ad6a8352bc8825b9660c553b57/api/messaging/src/index.ts#L29 But this only works when sending from BGSW or Pages.
7 replies
PD🧩 Plasmo Developers
Created by isibbot on 5/8/2024 in #🔰newbie
How to share service worker API response to many content scripts
Thanks @filthytone and @Lucas . I'd used the storage api from plasmo initially but just figured there make be part fot he messaging api I'd misundertstood.
7 replies
PD🧩 Plasmo Developers
Created by Jordan on 5/1/2024 in #🔰newbie
Can a Browser Extension look like Apple's Dynamic Island?
You could either create your own react components with css animation/transisiton (performant) or find a library already offering the same functionality and then use plasmo to inject using the overlay anchor type? https://docs.plasmo.com/framework/content-scripts-ui/life-cycle
4 replies
PD🧩 Plasmo Developers
Created by nerdo on 5/2/2024 in #🔰newbie
How do I call functions and get the return values from a popup?
You need to use the messaging API plasmo provides. https://docs.plasmo.com/framework/messaging#message-flow
4 replies