In the olden days most of space-faring electronics would be embedded in resin. Hey, that's where the term "embedded software" comes from!
That came with a number of advantages like pressure-proofing the system, making it way more durable against accelerations and allowing for more balanced temperature distribution. It also came with a slew of new problems, making the boards unserviceable, heat removal harder at times, and the whole thing much heavier.
How does the situation look like nowadays? How often are electronics meant for space embedded in resin?