Skip to content

Bundled plugins with React and JSX

Write a real plugin in plugins/<name>/ (TypeScript, JSX, npm imports) and build it with the shell’s tooling:

Terminal window
bun run plugin:new my-plugin # scaffold
bun run plugin:build my-plugin # bundle to public/plugins/my-plugin/
bun run plugin:watch my-plugin # rebuild on change

React is never bundled: imports of react / react/jsx-runtime are redirected to a bridge that reuses the shell’s instance (setReact(ctx.react) at the top of setup()). Install the result from the Plugins panel: /plugins/my-plugin/index.js.

Documentation under CC BY 4.0 · © SCFlow contributors ·Back to supplychainflow.org