The compiler-cli should only reference code that can be imported from the main entry-point of compiler. PR Close #31376