function transformExtNameElement(element) {
    let {attribs: attrs} = element;
    let src = attrs && attrs.src;

    if (src) {
        attrs.src = src.replace(/\.wxml$/i, '.swan');
    }
}
function transformExtNameElement(element) {
    let {attribs: attrs} = element;
    let src = attrs && attrs.src;

    if (src) {
        attrs.src = src.replace(/\.wxml$/i, '.swan');
    }
}
function transformExtNameElement ( element ) { let { attribs : attrs } = element ; let src = attrs && attrs . src ; if ( src ) { attrs . src = src . replace ( / \.wxml$ / i , '.swan' ) ; } }
src 引入 后缀转换: import and inlcude

@param  {Object} element element
src 引入 后缀转换 : import and inlcude