The AngularCompilerPlugin is resolving the files based on the paths property from the tsconfig and we have to unify the core modules package name in order to avoid duplicate modules causing app crashes on Android.
[x] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
vendor.js contains both the @nativescrip/core/ui/application and the proxy tns-core-modules/ui/application in Angular apps with short imports support in their tsconfig:
The AngularCompilerPlugin is resolving the files based on the
paths
property from the tsconfig and we have to unify the core modules package name in order to avoid duplicate modules causing app crashes on Android.PR Checklist
What is the current behavior?
vendor.js
contains both the@nativescrip/core/ui/application
and the proxytns-core-modules/ui/application
in Angular apps with short imports support in theirtsconfig
:What is the new behavior?
We are processing the
tsconfig
paths and unifying the core modules package name in order too keep a single package name in the generated code.Related to: may failing Angular related e2e tests