({
code,
plugins,
options,
json,
}: {
json: MitosisComponent;
code: string;
plugins: MitosisPlugin[];
options?: any;
})
| 63 | }; |
| 64 | |
| 65 | export const runPostCodePlugins = ({ |
| 66 | code, |
| 67 | plugins, |
| 68 | options, |
| 69 | json, |
| 70 | }: { |
| 71 | json: MitosisComponent; |
| 72 | code: string; |
| 73 | plugins: MitosisPlugin[]; |
| 74 | options?: any; |
| 75 | }) => { |
| 76 | let string = code; |
| 77 | for (const plugin of plugins) { |
| 78 | const postFunction = plugin(options).code?.post; |
| 79 | if (postFunction) { |
| 80 | string = postFunction(string, json); |
| 81 | } |
| 82 | } |
| 83 | return string; |
| 84 | }; |
no outgoing calls
no test coverage detected