Skip to content

Home > vue-metamorph > CodemodPlugin

CodemodPlugin type

A plugin that updates source code

Signature:

typescript
export type CodemodPlugin = {
    name: string;
    type: 'codemod';
    transform(context: CodemodPluginContext): number;
};

References: CodemodPluginContext