Skip to content

Commit 4df796d

Browse files
committed
fix: plugin transform
1 parent 28badf0 commit 4df796d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/commandkit/src/plugins/plugin-runtime/CompilerPluginRuntime.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ export class CompilerPluginRuntime {
153153
): Promise<{ code: string; map: string | null }> {
154154
let map: string | null = null;
155155
for (const plugin of this.plugins) {
156+
if (!plugin?.transform || typeof plugin?.transform !== 'function') {
157+
continue;
158+
}
159+
156160
try {
157161
const res: MaybeFalsey<TransformedResult> = await plugin.transform?.({
158162
code,

0 commit comments

Comments
 (0)