mirror of
https://github.com/angular/angular.git
synced 2026-11-23 15:07:51 -05:00
Currently when Tsurge runs in g3, it creates a bare bones Angular compiler plugin. The tsconfigs from compilation units may set options like "useHostForImportGeneration", but the Ngtsc logic doesn't enable because the `fileNameToModuleName` method is not defined on the host. This can break reference emission for Tsurge analyzers/programs and result in subtle differences to real `ng_module` compilations. This commit fixes this by making the method available in 1P Tsurge. Notably, reference emission can occur during analysis— so even if migrations aren't "emitting TS -> JS" output. PR Close #62447