packages/megalo-template-compiler/build.js
function mpify (node, options) {
  var target = options.target; if ( target === void 0 ) target = 'wechat';
  var imports = options.imports; if ( imports === void 0 ) imports = {};
  var transformAssetUrls = options.transformAssetUrls; if ( transformAssetUrls === void 0 ) transformAssetUrls = {};
  var scopeId = options.scopeId; if ( scopeId === void 0 ) scopeId = '';
  sep = "'" + (LIST_TAIL_SEPS[target]) + "'";
  var preset = presets[target];
  var state = new State({
    rootNode: node,
    target: target,
    preset: preset,
    imports: imports,
    transformAssetUrls: transformAssetUrls,
    scopeId: scopeId
  });
  if (scopeId) {
    addAttr$1(node, 'sc_', ("\"" + scopeId + "\""));
  }
  walk(node, state);
}
function mpify (node, options) {
  var target = options.target; if ( target === void 0 ) target = 'wechat';
  var imports = options.imports; if ( imports === void 0 ) imports = {};
  var transformAssetUrls = options.transformAssetUrls; if ( transformAssetUrls === void 0 ) transformAssetUrls = {};
  var scopeId = options.scopeId; if ( scopeId === void 0 ) scopeId = '';
  sep = "'" + (LIST_TAIL_SEPS[target]) + "'";
  var preset = presets[target];
  var state = new State({
    rootNode: node,
    target: target,
    preset: preset,
    imports: imports,
    transformAssetUrls: transformAssetUrls,
    scopeId: scopeId
  });
  if (scopeId) {
    addAttr$1(node, 'sc_', ("\"" + scopeId + "\""));
  }
  walk(node, state);
}
function mpify ( node , options ) { var target = options . target ; if ( target === void 0 ) target = 'wechat' ; var imports = options . imports ; if ( imports === void 0 ) imports = { } ; var transformAssetUrls = options . transformAssetUrls ; if ( transformAssetUrls === void 0 ) transformAssetUrls = { } ; var scopeId = options . scopeId ; if ( scopeId === void 0 ) scopeId = '' ; sep = "'" + ( LIST_TAIL_SEPS [ target ] ) + "'" ; var preset = presets [ target ] ; var state = new State ( { rootNode : node , target : target , preset : preset , imports : imports , transformAssetUrls : transformAssetUrls , scopeId : scopeId } ) ; if ( scopeId ) { addAttr$1 ( node , 'sc_' , ( "\"" + scopeId + "\"" ) ) ; } walk ( node , state ) ; }
walk and modify ast before render function is generated
walk and modify ast before render function is generated