packages/okam-build/lib/processor/template/plugins/helper.js
function normalizeTransformers(transformerMap) {
    let result = [];
    transformerMap && Object.keys(transformerMap).forEach(k => {
        let item = transformerMap[k];
        if (item) {
            item.transform.type = k;
            result.push(
                Object.assign({}, item, {name: k})
            );
        }
    });
    return result;
}
function normalizeTransformers(transformerMap) {
    let result = [];
    transformerMap && Object.keys(transformerMap).forEach(k => {
        let item = transformerMap[k];
        if (item) {
            item.transform.type = k;
            result.push(
                Object.assign({}, item, {name: k})
            );
        }
    });
    return result;
}
function normalizeTransformers ( transformerMap ) { let result = [ ] ; transformerMap && Object . keys ( transformerMap ) . forEach ( k => { let item = transformerMap [ k ] ; if ( item ) { item . transform . type = k ; result . push ( Object . assign ( { } , item , { name : k } ) ) ; } } ) ; return result ; }
Normalize the transformers

@param {Object} transformerMap the transform map
@return {Array}
Normalize the transformers