How to replace local component with a library component?

You can use Master plugin for that: