ngtools: listLazyRoutes()
called with entryRoute
normalized in non-standard way
#13531
Labels
area: @ngtools/webpack
freq1: low
Only reported by a handful of users who observe it rarely
severity2: inconvenient
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
N/A
Description
When ngtools callls ngProgram.listLazyRoutes() it may optionally pass an
entryRoute
. This route is based on entryModule.path, which is in turn resolved from_mainPath
, which is in turn resolved by the custom compiler host, which normalizes paths in a proprietary way (e.g. converting Windows paths like this:C:\foo\bar
-->/C/foo/bar
).This is different than how, for example, TS normalizes Windows paths (i.e.
C:\foo\bar
-->C:/foo/bar
), which means thatlistLazyRoutes()
implementations need to be aware of the cli normalization logic and perform similar normalization when trying to matchentryRoute
with their available routes.🔬 Minimal Reproduction
🌍 Your Environment
The text was updated successfully, but these errors were encountered: