RFC: Official CRXJS Plugin API #652
jacksteamdev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
CRXJS plugins are possible, in fact, CRXJS is a collection of plugins with special hooks.
RFC
What use cases do you have for CRXJS plugins? How could we improve the API design in an official plugin API?
Unofficial plugin instructions
Plugins are not documented yet, as I haven't yet finalized a public plugin API. You can look at the types here.
CrxPlugin
from@crxjs/vite-plugin
crx:
so CRXJS uses the CRXJS hookstransformCrxManifest
orrenderCrxManifest
hooks to modify the manifesttransformCrxManifest
modifies the input manifest at the beginning of the transform hookrenderCrxManifest
modifies the output manifest at the end of the generateBundle hookYou can add a CRXJS hook to a plugin like this:
Beta Was this translation helpful? Give feedback.
All reactions