You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Since the nativescript-dev-webpack plugin started adding a dependency to @angular-devkit/build-angular instead of @ngtools/webpack the cloud builds with NativeScript for Windows went from 10min to 15min. The change was introduced by #571 and is released with v0.14.0.
The installation of @angular-devkit/build-angular is slow on Windows, because this package has quite a lot of dependencies - 373 packages in total.
Solution
We'll revert the new behavior and go back to adding a dependency to @ngtools/webpack instead of @angular-devkit/build-angular.
The nativescript-dev-webpack plugin shouldn't add @ngtools/webpack if the project already have a dependency to @angular-devkit/build-angular. This will fix the third problem, described in #569:
For Angular projects one of the added dependencies is @ngtools/webpack. However, the @angular-devkit/build-angular package has a dependency to @ngtools/webpack. That means that if your project has a dependency to @angular-devkit/build-angular (as the default NG web projects do), this can lead to multiple versions of the @ngtools/webpack plugin in your project. Having multiple versions of that plugin causes the webpack compilation to fail - angular/angular-cli:packages/ngtools/webpack/src/loader.ts@master#L36-L43.