PR angular/angular#44505 updated angular/angular repo to use ES2015 instead of ES5. The mentioned change revealed that there is a duplication in a lot of places where the bootstrap is defined, for example:
jasmine_node_test(
bootstrap = ["//tools/testing:node_no_angular_es2015"],
or:
jasmine_node_test(
bootstrap = ["//tools/testing:node_es2015"],
This makes further ES version upgrades quite error-prone (and time-consuming), since we need to change ~100 files.
The proposal is to create a couple wrappers, for example:
- ng_node_test
- no_ng_node_test
and specify bootstrap there by default (and allow overrides), so that it's easier to update ES version.
PR angular/angular#44505 updated angular/angular repo to use ES2015 instead of ES5. The mentioned change revealed that there is a duplication in a lot of places where the
bootstrapis defined, for example:or:
This makes further ES version upgrades quite error-prone (and time-consuming), since we need to change ~100 files.
The proposal is to create a couple wrappers, for example:
and specify
bootstrapthere by default (and allow overrides), so that it's easier to update ES version.