Can I somehow patch the compiler, so I can replace one component with another during the build? Assuming those components would implement one interface. The main purpose would be in large monorepos, when eg. I have multiple applications and I have the form input component to have different implementations for web and for mobile apps, but in my form components, I would like to use only the “common” form input component. So I do not have to have duplicated forms for every application, just because I want to render some inputs differently