From 3c4ca3fa7f09aee06ead92c7a61ebcfa0671e71d Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Fri, 10 Jun 2022 17:53:45 -0400 Subject: [PATCH] refactor(@angular-devkit/build-webpack): assert catch clause variable type before usage Prepares the `@angular-devkit/build-webpack` package for the eventual change of enabling the TypeScript `useUnknownInCatchVariables` option. This option provides additional code safety by ensuring that the catch clause variable is the proper type before attempting to access its properties. Similar changes will be needed in the other packages in the repository prior to enabling `useUnknownInCatchVariables`. --- packages/angular_devkit/build_webpack/src/utils.ts | 2 +- packages/angular_devkit/build_webpack/src/webpack/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular_devkit/build_webpack/src/utils.ts b/packages/angular_devkit/build_webpack/src/utils.ts index 31e3fba23b..2367996b84 100644 --- a/packages/angular_devkit/build_webpack/src/utils.ts +++ b/packages/angular_devkit/build_webpack/src/utils.ts @@ -90,7 +90,7 @@ export async function getWebpackConfig(configPath: string): Promise