We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5d6782 + f94cd65 commit afefc04Copy full SHA for afefc04
packages/commandkit/src/plugins/plugin-runtime/CompilerPluginRuntime.ts
@@ -3,6 +3,7 @@ import {
3
MaybeFalsey,
4
TransformedResult,
5
TemplateHandler,
6
+ isCompilerPlugin,
7
} from '..';
8
import { AsyncLocalStorage } from 'node:async_hooks';
9
@@ -49,7 +50,9 @@ export class CompilerPluginRuntime {
49
50
* Creates a new instance of CompilerPluginRuntime.
51
* @param plugins An array of compiler plugins to be managed by this runtime.
52
*/
- public constructor(private readonly plugins: CompilerPlugin[]) {}
53
+ public constructor(private readonly plugins: CompilerPlugin[]) {
54
+ this.plugins = this.plugins.filter((p) => !!p && isCompilerPlugin(p));
55
+ }
56
57
/**
58
* Returns the plugins managed by this runtime.
0 commit comments