🧩 Plasmo Developers

PD

🧩 Plasmo Developers

Join the community to ask questions about 🧩 Plasmo Developers and get answers from other members.

Join

👾extension

👟framework

🔰newbie

🦉pallas

just out of curiosity, where does the storage live?

why does it work? i cannot find any cookie or localstorage where the keys i setup from plasmo are, it's pretty cool but i dont understand where that data is

anyone using authjs with plasmo

If yes, how did you go about this?

Error with messaging

Hey, im trying to send a message from a content script in the main world to the background. For that I have 2 small scripts, that I copied mainly from the docs, but I still cant get it to work. Why? /src/background/messages/ping.ts ```...

Floating-ui with plasmo?

Anyone managed to use floating-ui with Plasmo? I have been trying to inject a floating modal that can focus fully on the modal with floating-ui but with no avail. If you have used it before please share some tips. Thanks.

CSUI - detecting container removal ?

Hey! I use a content script for CSUI and can successfully add my UI. Up to the use case of my app the CSUI can be removed by user interactions on the target page. How can i automatically (or programmaticly) reinject the react container when it was deleted? The docs says there is a removal detection but is not very specific about it... does anyone have a hint for me? Thank you very much!...

env variables in BGSW?

Is there a way to access a non-public .env in background service workers akin to server-side in Next? Or is BGSW running client-side as well so you always need to pre-phrase it with PLASMO_PUBCIC?

Flutter support

It would be interesting to see Plasmo supporting Flutter natively

How to customize parcel config?

Hi everyone, I am trying to use a react-native based library called react-native-reanimated. This library has some components that are also supported for the web, and they write 2 files, for example a measure component will have measure.tsx and measure.web.tsx file. When I use this library in a nextJS project, it bundles the correct file for web, which is measure.web.tsx, however with plasmo, it seems like it only bundles the files with extensions .ts or .js etc..., and skips the equivalent .web.* file. How do I make parcel make the files that end in .web.* take precendence over .js|ts(x) files?...

Tab page injecting CSS into website's runtime

I am devloping my sign in option with tab pages. But if i style the body this directly affect website body. How to prevent this? I don't want to inject my CSS into website. tabs/signin.tsx ```...

MUI styles with PlasmoGetInlineAnchorList

Styles are added only for last shadow-root. Please tell me how to make it work. // Plasmo import createCache from "@emotion/cache";...

how do you get a privacy policy when uploading to chrome web store?

Most generators that I have searched for online require a link to your website to put in, but since my store isn't live yet, there is no link. How would I do this?

No styling for options.tsx

I have a basic options page written in TypeScript and styled via Tailwind CSS that displays perfectly within the popup. I saved all of the code to an OptionsPage.tsx, verified it displays fine, then used it in options.tsx: ```ts import React from 'react' import OptionsPage from '~pages/OptionsPage'...

Shadcn dosnt seem to work in content script ui

I have been trying to get Shadcn to work with CSUI. I followed almost everything from this server as well as the documentation, but it just doesn't seem to work. tailwind seems to work fine. am attaching some code can someone please help me out index.tsx ```tsx import cssText from "data-text:~/contents/style.css"...

support for multiple assets

trying to do a simple toggle icon extension (click extension to toggle icon) but it seems like only one icon ever included in build. is this possible?

Supabase url and anon key exposed

I am a newbie exploring Plasmo for supabase authentication. The public url and anon keys are added in the .env file. On building the file, I find the supabase url and anon keys are exposed in popup.js, which can be traced in Devtool sources. The bad actors may use the url and anonkey to exploit the auth.
What are the best ways to deal with supabase auth without exposing the url and key? Am I missing something?...

Firefox dev server manifest warnings

The ```json { "content_security_policy": { "extension_pages": "script-src 'self' http://localhost;object-src 'self';"...
No description

import url no longer working

Hey folks 👋🏻 just upgraded our extension at Attio to the latest version of Plasmo (0.85). It seems we can no longer include HTML into the bundle by doing: import doc from “url:test.html”. I’ve instead included the file as a web_accessible_resource, but the TS it imports can of course not be found as it’s no longer bundled. Is there an easy way to include this in the output?...

Parallel dev servers

I need to both run plasmo dev --verbose and plasmo dev --verbose --target=firefox-mv3, but when I run the latter I get ``` 🔵 INFO | Starting the extension development server... 🟡 1 | Starting dev server on localhost:52111, HMR on localhost:52112... 🟡 2 | Creating Manifest Factory......

How to sendToBackground from main world

i've try all of messaging method but background still not receive anything

button click inside CSUI closes the CSUI

When I click on a button inside the injected CSUI, the whole component is closing. I am using a useeffect with an event listener for mouseup event. However when I add the event listener to document.body instead of document, it works properly. But the problem is I can't add some event listeners to document body. Did anyone face this issue before?...