Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
MaybeFalsey,
TransformedResult,
TemplateHandler,
isCompilerPlugin,
} from '..';
import { AsyncLocalStorage } from 'node:async_hooks';

Expand Down Expand Up @@ -49,7 +50,9 @@ export class CompilerPluginRuntime {
* Creates a new instance of CompilerPluginRuntime.
* @param plugins An array of compiler plugins to be managed by this runtime.
*/
public constructor(private readonly plugins: CompilerPlugin[]) {}
public constructor(private readonly plugins: CompilerPlugin[]) {
this.plugins = this.plugins.filter((p) => !!p && isCompilerPlugin(p));
}

/**
* Returns the plugins managed by this runtime.
Expand Down
Loading