packages/okam-build/lib/build/swan/init-wx2swan-processor.js
function initTplProcessor(opts) {
    registerProcessor({
        name: 'wxml2swan',
        // using the existed view processor
        processor: 'view',
        extnames: ['wxml'],
        rext: 'swan',
        options: opts || {
            plugins: [
                wxmlPlugin
            ]
        }
    });
}
function initTplProcessor(opts) {
    registerProcessor({
        name: 'wxml2swan',
        // using the existed view processor
        processor: 'view',
        extnames: ['wxml'],
        rext: 'swan',
        options: opts || {
            plugins: [
                wxmlPlugin
            ]
        }
    });
}
Initialize wx tpl processor

@inner
@param {Object=} opts the processor options
@param {Array=} opts.plugins the view processor plugins