Why are plugins JS if Figma core is Wasm?

I’m curious as to why Figma made the decision for the environment for running plugins in Figma/FigJam and the code of plugins themselves are JavaScript, rather than a language that compiles to WebAssembly (SWIFT, Go, C, etc) since the rest of the Figma/FigJam applications are Wasm based?

Web assembly is for heavy tasks, like rendering. Everything else does not seem to be very practical in wasm. JS for plugins makes it very accessible for everyone to create stuff

1 Like