Skip to content

Commit

Permalink
Update lib/compiler/plugins-loader.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Mysliwiec <mail@kamilmysliwiec.com>
  • Loading branch information
Tony133 and kamilmysliwiec committed Nov 7, 2022
1 parent a69f7b8 commit e64480e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/compiler/plugins-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit e64480e

Please sign in to comment.