From 57d226a87b11d896782fcceea7c34bd6708b56d6 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Fri, 6 Dec 2019 17:21:24 +0100 Subject: [PATCH] fix(@angular-devkit/build-angular): resolve `@babel/preset-env` This is needed as otherwise under Bazel we hit `Cannot find module '@babel/preset-env` we use `require.resolve` since this is always patched under Bazel. --- .../build_angular/src/utils/process-bundle.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/utils/process-bundle.ts b/packages/angular_devkit/build_angular/src/utils/process-bundle.ts index 595076c6ea6f..fb35bba6e899 100644 --- a/packages/angular_devkit/build_angular/src/utils/process-bundle.ts +++ b/packages/angular_devkit/build_angular/src/utils/process-bundle.ts @@ -126,9 +126,15 @@ export async function process(options: ProcessBundleOptions): Promise