UNPKG

@emdaer/core

Version:
17 lines (13 loc) 391 B
/* @flow */ import type { TransformCall } from '../types'; const resolveTransform = require('./resolveTransform'); /** * Applies a transform to generated content */ module.exports = async function applyTransform( content: string, [transform, options]: TransformCall, comment: string ): Promise<string> { return (await resolveTransform(transform))(content, options, comment); };