You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to determine the current file being processed within a transform? I would like to be able to do error reporting when an exception occurs within a transform, and in this error reporting mention the file being processed.
The text was updated successfully, but these errors were encountered:
Found part of the solution.... there is a third argument to the transform function called config:
interfaceTransformFunction{(content: string,options: Record<string,unknown>,config?: ProcessedConfig): string;}interfaceProcessedConfigextendsConfiguration{readonlyoriginalPath: string;// path of file being processedreadonlyoriginalFilePaths: string[];// all files mathing thr glob patternreadonlyoutputDir: string;// directory where output files will be createdreadonlyoriginalContent: string;readonlyoutputContent: string;}
This is incorrectly defined in the @types/markdown-magic npm package.
Is there a way to determine the current file being processed within a transform? I would like to be able to do error reporting when an exception occurs within a transform, and in this error reporting mention the file being processed.
The text was updated successfully, but these errors were encountered: