From 9feab45ed2d4b1166ede90b22ca11dbeb9e33028 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Fri, 17 Jan 2025 10:36:00 -0800 Subject: [PATCH] Fix lint warning --- .../src/configs/webpack/overrides-resolver-loader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pwa-kit-extension-sdk/src/configs/webpack/overrides-resolver-loader.ts b/packages/pwa-kit-extension-sdk/src/configs/webpack/overrides-resolver-loader.ts index 08f0ce5fc7..078445bc4d 100644 --- a/packages/pwa-kit-extension-sdk/src/configs/webpack/overrides-resolver-loader.ts +++ b/packages/pwa-kit-extension-sdk/src/configs/webpack/overrides-resolver-loader.ts @@ -66,8 +66,8 @@ const OverrideResolverLoader = function (this: LoaderContext) { } // Lets use the compiler configuration to ensure we are resolving the correct file extensions. - const compilerOptions = this._compiler!.options - const extensions = compilerOptions.resolve?.extensions || [] + const compilerOptions = this._compiler?.options + const extensions = compilerOptions?.resolve?.extensions || [] const basedir = options?.baseDir || process.cwd() const applicationExtensions = compiler?.custom?.extensions || []