UNPKG

fa-toolkit

Version:

a devtool for fast app

1 lines 1.75 kB
"use strict";var _0x124c8b=_0x5cdc;function _0x1edd(){var e=["parsed","resourcePath","options","depends","versionNum","concat","exports","module.exports=","5742198OQLCmK","3055UMtXAL","query","path","cacheable","./utils","8IvVfIN","1465585bRJyyT","50hGQBcV","then","loader-utils","311865fhxQxS","widgetPathsList","length","catch","logWarn","ERROR: Template parsing error: ","_enableJsVm","basename","context","954BVVfQO","2drfnEv","parseQuery","202119HWXRsV","11596092ZFXKKl","./parser","log","20NiVPvv","jsVm","13915638vBxDiy"];return(_0x1edd=function(){return e})()}function _0x5cdc(e,t){var r=_0x1edd();return(_0x5cdc=function(e,t){return r[e-=142]})(e,t)}!function(){for(var e=_0x5cdc,t=_0x1edd();;)try{if(953885==-parseInt(e(164))*(parseInt(e(174))/2)+parseInt(e(176))/3*(parseInt(e(142))/4)+parseInt(e(154))/5*(-parseInt(e(173))/6)+-parseInt(e(153))/7+-parseInt(e(159))/8*(-parseInt(e(144))/9)+parseInt(e(161))/10*(-parseInt(e(160))/11)+parseInt(e(177))/12)break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var path=require(_0x124c8b(156)),_utils=require(_0x124c8b(158)),_parser=require(_0x124c8b(178)),loaderUtils=require(_0x124c8b(163));module[_0x124c8b(151)]=function(e){var a=_0x124c8b,s=this;this.cacheable&&this[a(157)]();var t=this[a(146)],n=this.async(),r=this[a(147)][a(149)],c=this[a(147)][a(165)],i=loaderUtils[a(175)](this[a(155)]||"?"),u=i[a(148)],i=i[a(143)];global[a(170)]=i,global._currentContext=path[a(171)](this[a(172)]),_parser.parseTemplate({code:e,filePath:t,versionNum:r,widgetPathsList:c,webpacker:s,depends:u})[a(162)](function(e){var t=a,r=e[t(145)],e=e[t(179)];e&&e[t(166)]&&_utils.logWarn(s,e),n(null,t(152).concat(r))})[a(167)](function(e){var t=a;_utils[t(168)](s,[{reason:t(169)[t(150)](e)}]),n(null,"{}")})};