build: add a before-all-other bootstrap script that patches require (#34736)

This removes the churn in the existing bootstrap scripts.

PR Close #34736
This commit is contained in:
Greg Magolan
2020-01-08 01:14:27 -08:00
committed by Matias Niemelä
parent 449a9fccc2
commit 8560f016cd
10 changed files with 34 additions and 43 deletions

View File

@ -6,12 +6,6 @@
* found in the LICENSE file at https://angular.io/license
*/
// bootstrap the bazel require patch since this bootstrap script is loaded with
// `--node_options=--require=$(rlocation $(location script.js))`
if (process.env['BAZEL_NODE_RUNFILES_HELPER']) {
require(process.env['BAZEL_NODE_RUNFILES_HELPER'] as string).patchRequire();
}
import 'zone.js/lib/node/rollup-main';
import 'zone.js/lib/zone-spec/long-stack-trace';
import 'zone.js/lib/zone-spec/task-tracking';