packages/okam-build/lib/build/swan/init-wx2swan-processor.js
function initProcessor(options = {}, defaultBabelProcessorName) {
    let {js, css, tpl, wxs} = options;

    if (tpl !== false) {
        initTplProcessor(tpl);
    }

    if (css !== false) {
        initStyleProcessor(css);
    }

    if (js !== false) {
        initJsProcessor(js, defaultBabelProcessorName);
    }

    if (wxs !== false) {
        initWxsProcessor(js, defaultBabelProcessorName);
    }
}
function initProcessor(options = {}, defaultBabelProcessorName) {
    let {js, css, tpl, wxs} = options;

    if (tpl !== false) {
        initTplProcessor(tpl);
    }

    if (css !== false) {
        initStyleProcessor(css);
    }

    if (js !== false) {
        initJsProcessor(js, defaultBabelProcessorName);
    }

    if (wxs !== false) {
        initWxsProcessor(js, defaultBabelProcessorName);
    }
}
Init wx2swan processors

@param {Object=} options the initialization options
@param {Object=} options.js the wx component js processor init options
@param {Object=} options.css the wx component style processor init options
@param {Object=} options.tpl the wx template processor init options
@param {string} defaultBabelProcessorName default babel processor name