File tree Expand file tree Collapse file tree
packages/commandkit/src/plugins/plugin-runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 isCompilerPlugin ,
77} from '..' ;
88import { AsyncLocalStorage } from 'node:async_hooks' ;
9+ import { Logger } from '../../logger/Logger' ;
910
1011/**
1112 * Interface representing a template entry in the plugin runtime.
@@ -91,7 +92,7 @@ export class CompilerPluginRuntime {
9192 }
9293
9394 /**
94- * Unregisters a template handler for a given name.
95+ * Unregister a template handler for a given name.
9596 * This method must be called inside the deactivate() method of a plugin.
9697 * @param name - The name of the template to unregister.
9798 */
@@ -154,6 +155,9 @@ export class CompilerPluginRuntime {
154155 let map : string | null = null ;
155156 for ( const plugin of this . plugins ) {
156157 if ( ! plugin ?. transform || typeof plugin ?. transform !== 'function' ) {
158+ Logger . warn (
159+ `Plugin ${ plugin ?. name ?? '<unknown>' } is invalid or does not have a transform method or the method is not a function` ,
160+ ) ;
157161 continue ;
158162 }
159163
You can’t perform that action at this time.
0 commit comments