From e64480e68258170ef5fe14ba34130e02ad9d57ba Mon Sep 17 00:00:00 2001 From: Antonio Tripodi Date: Mon, 7 Nov 2022 16:18:19 +0100 Subject: [PATCH] Update lib/compiler/plugins-loader.ts Co-authored-by: Kamil Mysliwiec --- lib/compiler/plugins-loader.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/compiler/plugins-loader.ts b/lib/compiler/plugins-loader.ts index 1dd2226d7..1dca86795 100644 --- a/lib/compiler/plugins-loader.ts +++ b/lib/compiler/plugins-loader.ts @@ -30,9 +30,7 @@ export interface MultiNestCompilerPlugins { export class PluginsLoader { public load(plugins: PluginEntry[] = []): MultiNestCompilerPlugins { const pluginNames = plugins.map((entry) => - entry !== null && typeof entry === 'object' - ? (entry as PluginAndOptions).name - : (entry as string), + entry ? (entry as PluginAndOptions)?.name : (entry as string) ); const nodeModulePaths = [ join(process.cwd(), 'node_modules'),