An update - I’ve managed to make a ThemeField babel, which is used to read babel.config.json from theme and inject plugins into Babel.transform in the discourse_js_processor.
I hope go get the PR out soon just to show as a prof of concept. A warning - It will be a huge mess
.
PS. Ruby is so easy to work with ![]()