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.
Local environment
Platform: Windows
Node version: 9.5.0
NativeScript CLI version: 4.1.3
Project data
Platform you are building the app for: Android
The text was updated successfully, but these errors were encountered:
@angular-devkit/build-angular is not a dependency
Revert to adding @ngtools/webpack instead of
@angular-devkit/build-angular because the later is ~150mb bigger and
slows down the {N} cloud builds.
Add @ngtools/webpack to the project dependencies only if
@angular-devkit/build-angular isn't there already. That's because the
@angular-devkit/build-angular already depends on @ngtools/webpack. This will prevent the
plugin from adding multiple instances of @ngtools/webpack to the project
which would cause the build to fail.
related to #571, #569fixes#595
@angular-devkit/build-angular is not a dependency
Revert to adding @ngtools/webpack instead of
@angular-devkit/build-angular because the later is ~150mb bigger and
slows down the {N} cloud builds.
Add @ngtools/webpack to the project dependencies only if
@angular-devkit/build-angular isn't there already. That's because the
@angular-devkit/build-angular already depends on @ngtools/webpack. This will prevent the
plugin from adding multiple instances of @ngtools/webpack to the project
which would cause the build to fail.
related to #571, #569
BREAKING CHANGES
Not really a breaking change but:
It's a good idea to remove the `@angular-devkit/build-angular` from the
package.json and add `@ngtools/webpack` instead as this will speed up
the build.
fixes#595
…ld-angular is not a dependency (#594)
* fix: add @ngtools/webpack to project deps only if
@angular-devkit/build-angular is not a dependency
Revert to adding @ngtools/webpack instead of
@angular-devkit/build-angular because the later is ~150mb bigger and
slows down the {N} cloud builds.
Add @ngtools/webpack to the project dependencies only if
@angular-devkit/build-angular isn't there already. That's because the
@angular-devkit/build-angular already depends on @ngtools/webpack. This will prevent the
plugin from adding multiple instances of @ngtools/webpack to the project
which would cause the build to fail.
related to #571, #569
BREAKING CHANGES
Not really a breaking change but:
It's a good idea to remove the `@angular-devkit/build-angular` from the
package.json and add `@ngtools/webpack` instead as this will speed up
the build.
fixes#595
* test(e2e): update demo Angular deps
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue Checklist
Problem
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:Local environment
Project data
The text was updated successfully, but these errors were encountered: