fa-toolkit
Version:
a devtool for fast app
1 lines • 19.5 kB
JavaScript
;var _0x32792b=_0x5e90;function _typeof(e){var r=_0x5e90;return(_typeof=r(463)==typeof Symbol&&r(534)==typeof Symbol.iterator?function(e){return typeof e}:function(e){var t=r;return e&&t(463)==typeof Symbol&&e[t(459)]===Symbol&&e!==Symbol[t(521)]?t(534):typeof e})(e)}function _regeneratorRuntime(){var c=_0x5e90;_regeneratorRuntime=function(){return u};var u={},e=Object[c(521)],p=e[c(567)],l=Object[c(520)]||function(e,t,r){e[t]=r[c(525)]},t=c(463)==typeof Symbol?Symbol:{},i=t[c(453)]||c(435),r=t[c(498)]||"@@asyncIterator",n=t[c(533)]||c(419);function o(e,t,r){return Object[c(520)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i,a,u,s,o=c,t=t&&t[o(521)]instanceof g?t:g,t=Object[o(514)](t.prototype),n=new x(n||[]);return l(t,o(517),{value:(i=e,a=r,u=n,s="suspendedStart",function(e,t){var r=_0x5e90;if(r(509)===s)throw new Error(r(550));if("completed"===s){if(r(581)===e)throw t;return w()}for(u.method=e,u[r(405)]=t;;){var n=u[r(526)];if(n){var o=function e(t,r){var n=c,o=r[n(584)],i=t.iterator[o];if(void 0===i)return r.delegate=null,n(581)===o&&t[n(453)][n(536)]&&(r.method=n(536),r[n(405)]=void 0,e(t,r),"throw"===r[n(584)])||"return"!==o&&(r[n(584)]=n(581),r[n(405)]=new TypeError(n(565)+o+n(431))),h;i=f(i,t[n(453)],r[n(405)]);if("throw"===i[n(502)])return r[n(584)]=n(581),r[n(405)]=i[n(405)],r[n(526)]=null,h;var i=i[n(405)];return i?i[n(519)]?(r[t[n(569)]]=i[n(525)],r[n(416)]=t.nextLoc,n(536)!==r.method&&(r[n(584)]="next",r.arg=void 0),r[n(526)]=null,h):i:(r[n(584)]=n(581),r.arg=new TypeError(n(421)),r[n(526)]=null,h)}(n,u);if(o){if(o===h)continue;return o}}if(r(416)===u.method)u[r(433)]=u._sent=u[r(405)];else if(r(581)===u.method){if("suspendedStart"===s)throw s=r(505),u[r(405)];u[r(588)](u[r(405)])}else r(536)===u.method&&u[r(590)]("return",u[r(405)]);s=r(509);o=f(i,a,u);if(r(543)===o.type){if(s=u.done?r(505):r(490),o.arg===h)continue;return{value:o.arg,done:u[r(519)]}}r(581)===o[r(502)]&&(s="completed",u[r(584)]=r(581),u[r(405)]=o[r(405)])}})}),t}function f(e,t,r){var n=c;try{return{type:"normal",arg:e[n(504)](t,r)}}catch(e){return{type:n(581),arg:e}}}u[c(454)]=s;var h={};function g(){}function a(){}function d(){}var b={};o(b,i,function(){return this});t=Object[c(418)],t=t&&t(t(k([])));t&&t!==e&&p[c(504)](t,i)&&(b=t);var _=d[c(521)]=g[c(521)]=Object[c(514)](b);function v(e){var t=c;["next",t(581),t(536)].forEach(function(t){o(e,t,function(e){return this[_0x5e90(517)](t,e)})})}function m(u,s){var t,o=c;l(this,o(517),{value:function(r,n){function e(){return new s(function(e,t){!function t(e,r,n,o){var i=_0x5e90,e=f(u[e],u,r);if("throw"!==e.type){var a=e[i(405)],r=a.value;return r&&"object"==_typeof(r)&&p[i(504)](r,i(430))?s[i(480)](r[i(430)])[i(546)](function(e){t(i(416),e,n,o)},function(e){t(i(581),e,n,o)}):s[i(480)](r).then(function(e){a.value=e,n(a)},function(e){return t(i(581),e,n,o)})}o(e.arg)}(r,n,e,t)})}return t=t?t[o(546)](e,e):e()}})}function y(e){var t=c,r={tryLoc:e[0]};1 in e&&(r[t(566)]=e[1]),2 in e&&(r[t(531)]=e[2],r[t(420)]=e[3]),this.tryEntries[t(558)](r)}function P(e){var t=c,r=e[t(598)]||{};r.type="normal",delete r[t(405)],e.completion=r}function x(e){var t=c;this.tryEntries=[{tryLoc:t(460)}],e[t(510)](y,this),this[t(429)](!0)}function k(r){var n=c;if(r){var e=r[i];if(e)return e[n(504)](r);if("function"==typeof r[n(416)])return r;if(!isNaN(r[n(563)])){var o=-1,e=function e(){for(var t=n;++o<r[t(563)];)if(p.call(r,o))return e[t(525)]=r[o],e.done=!1,e;return e[t(525)]=void 0,e[t(519)]=!0,e};return e[n(416)]=e}}return{next:w}}function w(){return{value:void 0,done:!0}}return a.prototype=d,l(_,c(459),{value:d,configurable:!0}),l(d,c(459),{value:a,configurable:!0}),a[c(474)]=o(d,n,c(560)),u[c(512)]=function(e){var t=c,e=t(463)==typeof e&&e[t(459)];return!!e&&(e===a||t(560)===(e[t(474)]||e[t(448)]))},u[c(553)]=function(e){var t=c;return Object[t(406)]?Object.setPrototypeOf(e,d):(e[t(409)]=d,o(e,n,t(560))),e[t(521)]=Object.create(_),e},u[c(594)]=function(e){return{__await:e}},v(m[c(521)]),o(m[c(521)],r,function(){return this}),u.AsyncIterator=m,u[c(542)]=function(e,t,r,n,o){var i=c;void 0===o&&(o=Promise);var a=new m(s(e,t,r,n),o);return u[i(512)](t)?a:a[i(416)]()[i(546)](function(e){var t=i;return e[t(519)]?e[t(525)]:a[t(416)]()})},v(_),o(_,n,"Generator"),o(_,i,function(){return this}),o(_,"toString",function(){return c(408)}),u.keys=function(e){var t,n=c,o=Object(e),i=[];for(t in o)i[n(558)](t);return i[n(476)](),function e(){for(var t=n;i[t(563)];){var r=i[t(535)]();if(r in o)return e[t(525)]=r,e[t(519)]=!1,e}return e.done=!0,e}},u[c(449)]=k,x.prototype={constructor:x,reset:function(e){var t=c;if(this[t(427)]=0,this.next=0,this.sent=this[t(537)]=void 0,this.done=!1,this.delegate=null,this.method=t(416),this[t(405)]=void 0,this[t(585)][t(510)](P),!e)for(var r in this)"t"===r[t(562)](0)&&p.call(this,r)&&!isNaN(+r[t(497)](1))&&(this[r]=void 0)},stop:function(){var e=c;this.done=!0;var t=this[e(585)][0][e(598)];if(e(581)===t[e(502)])throw t.arg;return this[e(456)]},dispatchException:function(n){var o=c;if(this[o(519)])throw n;var i=this;function e(e,t){var r=o;return a[r(502)]="throw",a[r(405)]=n,i.next=e,t&&(i[r(584)]=r(416),i[r(405)]=void 0),!!t}for(var t=this[o(585)].length-1;0<=t;--t){var r=this.tryEntries[t],a=r[o(598)];if("root"===r[o(592)])return e(o(582));if(r.tryLoc<=this[o(427)]){var u=p.call(r,"catchLoc"),s=p[o(504)](r,o(531));if(u&&s){if(this[o(427)]<r.catchLoc)return e(r[o(566)],!0);if(this.prev<r[o(531)])return e(r[o(531)])}else if(u){if(this[o(427)]<r[o(566)])return e(r.catchLoc,!0)}else{if(!s)throw new Error(o(478));if(this[o(427)]<r[o(531)])return e(r[o(531)])}}}},abrupt:function(e,t){for(var r=c,n=this.tryEntries[r(563)]-1;0<=n;--n){var o=this[r(585)][n];if(o[r(592)]<=this[r(427)]&&p.call(o,r(531))&&this[r(427)]<o[r(531)]){var i=o;break}}var a=(i=i&&("break"===e||r(462)===e)&&i[r(592)]<=t&&t<=i.finallyLoc?null:i)?i[r(598)]:{};return a[r(502)]=e,a[r(405)]=t,i?(this[r(584)]=r(416),this[r(416)]=i[r(531)],h):this[r(438)](a)},complete:function(e,t){var r=c;if(r(581)===e[r(502)])throw e[r(405)];return r(568)===e.type||r(462)===e[r(502)]?this[r(416)]=e[r(405)]:"return"===e[r(502)]?(this[r(456)]=this[r(405)]=e[r(405)],this[r(584)]="return",this[r(416)]=r(582)):r(543)===e[r(502)]&&t&&(this[r(416)]=t),h},finish:function(e){for(var t=c,r=this.tryEntries[t(563)]-1;0<=r;--r){var n=this[t(585)][r];if(n[t(531)]===e)return this[t(438)](n[t(598)],n.afterLoc),P(n),h}},catch:function(e){for(var t=c,r=this[t(585)][t(563)]-1;0<=r;--r){var n=this.tryEntries[r];if(n[t(592)]===e){var o,i=n.completion;return t(581)===i[t(502)]&&(o=i[t(405)],P(n)),o}}throw new Error(t(527))},delegateYield:function(e,t,r){var n=c;return this.delegate={iterator:k(e),resultName:t,nextLoc:r},n(416)===this.method&&(this.arg=void 0),h}},u}function _0x5e90(e,t){var r=_0x2bd1();return(_0x5e90=function(e,t){return r[e-=405]})(e,t)}function ownKeys(r,e){var t,n=_0x5e90,o=Object[n(485)](r);return Object[n(549)]&&(t=Object.getOwnPropertySymbols(r),e&&(t=t[n(466)](function(e){var t=n;return Object[t(481)](r,e)[t(564)]})),o[n(558)].apply(o,t)),o}function _objectSpread(t){for(var r=_0x5e90,e=1;e<arguments[r(563)];e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0)[r(510)](function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object[r(434)](n)):ownKeys(Object(n))[r(510)](function(e){Object.defineProperty(t,e,Object[r(481)](n,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_0x5e90,e=_toPrimitive(e,t(515));return _typeof(e)===t(534)?e:String(e)}function _toPrimitive(e,t){var r=_0x5e90;if(_typeof(e)!==r(528)||null===e)return e;var n=e[Symbol[r(548)]];if(void 0===n)return(t===r(515)?String:Number)(e);t=n.call(e,t||r(443));if(_typeof(t)!==r(528))return t;throw new TypeError(r(552))}function asyncGeneratorStep(e,t,r,n,o,i,a){var u=_0x5e90;try{var s=e[i](a),c=s[u(525)]}catch(e){return void r(e)}s[u(519)]?t(c):Promise[u(480)](c)[u(546)](n,o)}function _asyncToGenerator(s){return function(){var e=this,u=arguments;return new Promise(function(t,r){var n=_0x5e90,o=s[n(436)](e,u);function i(e){asyncGeneratorStep(o,t,r,i,a,n(416),e)}function a(e){asyncGeneratorStep(o,t,r,i,a,n(581),e)}i(void 0)})}}!function(){for(var e=_0x5e90,t=_0x2bd1();;)try{if(770117==+parseInt(e(477))*(-parseInt(e(464))/2)+parseInt(e(413))/3*(parseInt(e(442))/4)+-parseInt(e(488))/5+-parseInt(e(578))/6+parseInt(e(579))/7*(parseInt(e(583))/8)+-parseInt(e(467))/9*(-parseInt(e(493))/10)+parseInt(e(483))/11)break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var path=require(_0x32792b(596)),fs=require("fs"),ZipPlugin=require(_0x32792b(557)),ResourcePlugin=require(_0x32792b(495)),_require=require(_0x32792b(503)),clearResource=_require[_0x32792b(455)],norpk=_require[_0x32792b(523)],IS_PRD=_require.IS_PRD,projectPath=_require[_0x32792b(407)],signFlag=_require.signFlag,enableIstanbul=_require[_0x32792b(556)],enableE2e=_require[_0x32792b(457)],splitChunksMode=_require[_0x32792b(524)],getPrivateKeyStr=_require.getPrivateKeyStr,utils=require("./fa-compiler/utils"),webpack=require(_0x32792b(573)),LoggerPlugin=require(_0x32792b(575)),SplitChunksAdaptPlugin=require("./fa-compiler/splitchunks-adapt-plugin"),HandlerPlugin=require(_0x32792b(518)),_require2=require(_0x32792b(458)),postHook=_require2[_0x32792b(511)],resolve=function(){return path.join[_0x32792b(436)](path,arguments)};process[_0x32792b(499)]=!0;var FILE_EXT_LIST=[_0x32792b(424),_0x32792b(423),_0x32792b(475)],quickAppConfigPath=resolve(projectPath,"./quickapp.config.js"),quickAppConfig=fs[_0x32792b(496)](quickAppConfigPath)?require(quickAppConfigPath):{},enableLazyComponent=quickAppConfig[_0x32792b(428)]&&quickAppConfig[_0x32792b(428)][_0x32792b(447)]||!1,SPLIT_CHUNKS_SUPPORT_VERSION_FROM=1080,_quickAppConfig=quickAppConfig,_quickAppConfig$sourc=_quickAppConfig[_0x32792b(501)],sourceRoot=void 0===_quickAppConfig$sourc?_0x32792b(471):_quickAppConfig$sourc,_quickAppConfig$relea=_quickAppConfig[_0x32792b(412)],releasePath=void 0===_quickAppConfig$relea?_0x32792b(472):_quickAppConfig$relea,_quickAppConfig$signR=_quickAppConfig.signRoot,signRoot=void 0===_quickAppConfig$signR?_0x32792b(441):_quickAppConfig$signR,_quickAppConfig$outpu=_quickAppConfig[_0x32792b(414)],outputPath=void 0===_quickAppConfig$outpu?"build":_quickAppConfig$outpu,rootDir=resolve(projectPath,sourceRoot),signPath=resolve(projectPath,signRoot),zipPath=resolve(projectPath,releasePath),manifestPath=resolve(rootDir,_0x32792b(450)),buildPath=resolve(projectPath,outputPath),genEntryKey=function(e){return resolve(outputPath,path.relative(rootDir,e))},compNameMap={},splitChunksConfig={minSize:1,cacheGroups:{default:!1,defaultVendors:{test:/[\\/]node_modules[\\/]/,chunks:_0x32792b(415),minChunks:2,name:function(e){var t=_0x32792b,r=e[t(482)][t(500)](t(561));return e[t(482)][t(497)](r).replace(/(.+)\.\w\??(.+)?/,function(e,t){return t})[t(572)](path[t(432)]).join("/")},priority:2,reuseExistingChunk:!0,enforce:!0},appPkg:{test:function(e,t){var r=_0x32792b,t=t[r(589)];return!(!utils[r(513)](e,t)||!utils[r(597)](e))},chunks:"all",name:function(e){var t=_0x32792b,r=path[t(422)](projectPath,sourceRoot);return e[t(482)][t(497)](r[t(563)]+1)[t(440)](/(.+)\.\w\??(.+)?/,function(e,t){return t})[t(572)](path[t(432)])[t(422)]("/")},priority:1,minChunks:1,reuseExistingChunk:!0,enforce:!0},chunks:{test:function(e){var t=_0x32792b;return"NormalModule"===e[t(459)][t(448)]},chunks:_0x32792b(415),minChunks:2,name:function(e){var t=_0x32792b,r=path[t(422)](projectPath,sourceRoot);return e[t(482)][t(497)](r[t(563)]+1).replace(/(.+)\.\w\??(.+)?/,function(e,t){return t}).split(path.sep)[t(422)]("/")},priority:1,reuseExistingChunk:!0,enforce:!0},async:{chunks:_0x32792b(542),name:function(e){var t=_0x32792b,r=path[t(422)](projectPath,sourceRoot);return e.resource[t(497)](r.length+1).replace(/(.+)\.\w\??(.+)?/,function(e,t){return t})[t(572)](path[t(432)])[t(422)]("/")},priority:3,enforce:!0}}};function genEntry(e,t){var r=_0x32792b,n={},o=t,i=!1,t=resolve(rootDir,r(522));if(fs.existsSync("".concat(t,r(424)))&&(n[genEntryKey(t)]="".concat(t,".ux")),e[r(576)]){var a,u=e[r(576)][r(545)]||{};for(a in u)if(Object.prototype[r(567)].call(u,a)){var s=u[a],c=s[r(530)];s||console[r(469)](r(577)[r(452)](a,r(484))+r(470)[r(452)](c,r(551)));c=resolve(rootDir,a,c);if(!fs[r(496)]("".concat(c,".ux")))throw r(410)[r(452)](JSON.stringify(FILE_EXT_LIST),r(595))[r(452)](c);n[genEntryKey(c)]=""[r(452)](c,r(424)),compNameMap[s[r(596)]||"/"[r(452)](a)]=s[r(530)],a===e[r(576)].entry&&o.includes(resolve(rootDir,a))&&(i=!0)}}return i&&(n={},(o=genWidgetPathsList(e,compNameMap))[r(510)](function(e){var t=r;n[genEntryKey(e)]="".concat(e,t(424))})),n}function genQuickcardEntry(e){var t=_0x32792b,r=e[t(439)];if(!r)throw t(506);var n={},e=resolve(rootDir,r);if(!fs[t(496)](""[t(452)](e,".ux")))throw t(487)[t(452)](r,t(508))[t(452)](rootDir);return n[genEntryKey(e)]="".concat(e,".ux"),n}function genWidgetPathsList(e,r){var n=_0x32792b;return e[n(479)]&&e[n(479)][n(563)]?e[n(479)][n(559)](function(e){var t=n;if(r&&!r[e[t(596)]])throw t(538)[t(452)](e[t(596)],t(571));return path[t(422)](rootDir,e[t(596)],r?r[e.path]:"")}):[]}function getManifestJson(e){var t=_0x32792b;if(fs[t(496)](e))return require(e);throw"ERROR: Can not resolve manifest.json in "[t(452)](rootDir)}function _0x2bd1(){var e=["./fa-compiler/harmony-resource-plugin","enableLazyComponent","name","values","manifest.json","quickapp","concat","iterator","wrap","clearResource","rval","enableE2e","./webpack.post","constructor","root","[name].js","continue","function","1704802LKUBaU","LoaderOptionsPlugin","filter","9FraLny","minPlatformVersion","log","have the component attribute configured. By default, '","src","dist","window","displayName",".mix","reverse","1dwgRKb","try statement without catch or finally","widgets","resolve","getOwnPropertyDescriptor","resource","20819568EpAAmS","' does not ","keys","unshift","ERROR: Can not resolve file: ","1843760YJyyyq","istanbul-instrumenter-loader","suspendedYield","dssHost","@babel/plugin-transform-modules-commonjs","5838670giZkve","browser","./fa-compiler/resource-plugin","existsSync","slice","asyncIterator","noDeprecation","indexOf","sourceRoot","type","./common/utils","call","completed",'ERROR: Manifest.json does not contain configuration item "entry"',"deterministic",".ux in ","executing","forEach","postHook","isGeneratorFunction","isAppRequire","create","string","ERROR: Enable splitChunksMode:SMART mode. Ensure that the","_invoke","./fa-compiler/handler-plugin","done","defineProperty","prototype","app","norpk","splitChunksMode","value","delegate","illegal catch attempt","object","fa-compiler/fa-module-loader.js","component","finallyLoc","plugins","toStringTag","symbol","pop","return","_sent",'ERROR: Can not find card path "',"babel-loader","moduleIds"," platform version >= ","async","normal","appType","pages","then","cardId","toPrimitive","getOwnPropertySymbols","Generator is already running","' is used.","@@toPrimitive must return a primitive value.","mark","named","getBabelPresets","enableIstanbul","./fa-compiler/fa-zip-plugin","push","map","GeneratorFunction","node_modules","charAt","length","enumerable","The iterator does not provide a '","catchLoc","hasOwnProperty","break","resultName","module",'" in router.pages',"split","webpack","inline-cheap-module-source-map","./common/logger-plugin","router","WARNING:Route information in the manifest.json file is incomplete: Page '","4378056wGaSTh","19411PYacZQ","loadBabelModule","throw","end","520qSJgGs","method","tryEntries","development","subpackages","dispatchException","chunkGraph","abrupt","@babel/plugin-proposal-class-properties","tryLoc","Bundle","awrap"," file in ","path","isUxPath","completion","arg","setPrototypeOf","PROJECT_PATH","[object Generator]","__proto__","ERROR: Can not resolve ","production","releasePath","64146ysoeTM","outputPath","all","next","optimization","getPrototypeOf","@@toStringTag","afterLoc","iterator result is not an object","join",".wux",".ux","none","dssKey","prev","cli","reset","__await","' method","sep","sent","getOwnPropertyDescriptors","@@iterator","apply","stop","complete","entry","replace","sign","12XWkpeU","default","main","devtool"];return(_0x2bd1=function(){return e})()}function getDssSignCfg(){var e=_0x32792b,t=0<arguments[e(563)]&&void 0!==arguments[0]?arguments[0]:{},r=t[e(491)],e=t[e(426)];return r&&e?{dssHost:r,dssKey:e}:{}}function getWebpackCfg(e){return _getWebpackCfg.apply(this,arguments)}function _getWebpackCfg(){var t=_0x32792b;return(_getWebpackCfg=_asyncToGenerator(_regeneratorRuntime()[t(553)](function e(r){var n,o,i,a,u,s,c,p,l,f,h=t;return _regeneratorRuntime()[h(454)](function(e){for(var t=h;;)switch(e[t(427)]=e[t(416)]){case 0:return e[t(416)]=2,clearResource([zipPath,buildPath]);case 2:if(n=getPrivateKeyStr(r),o=getDssSignCfg(r),i=getManifestJson(manifestPath),l=i.package,a=void 0===l?t(593):l,c=i[t(587)],u=void 0===c?[]:c,f=i[t(468)],s=i[t(544)],p=i[t(547)],l=genWidgetPathsList(i),c={},s?(a=p,c=genQuickcardEntry(i),global._isQuickCardMode=!0):c=genEntry(i,l),global._enableScriptV8=1040<=f,p=[{loader:path[t(480)](__dirname,t(529))},{loader:utils[t(580)](t(539)),options:{presets:utils[t(555)](),plugins:[utils[t(580)](t(492)),utils[t(580)](t(591)),utils[t(580)]("@babel/plugin-proposal-object-rest-spread")]}}],enableIstanbul&&p[t(486)]({loader:utils[t(580)](t(489))}),l={mode:t(IS_PRD?411:586),devtool:!IS_PRD&&t(574),entry:c,output:{path:path[t(422)](projectPath),filename:t(461),globalObject:t(473),publicPath:"./"},module:{rules:[{test:/\.(ux|wux|mix)(\?[^?]+)?$/,use:[{loader:path[t(480)](__dirname,"fa-compiler/loader.js")}]},{test:/node_modules(\\|\/)(.+?)\.js$/,use:[{loader:path[t(480)](__dirname,"fa-compiler/fa-module-loader.js")}]},{test:/\.js$/,use:p,exclude:/node_modules/}]},plugins:[new ResourcePlugin({src:rootDir,build:buildPath,manifest:i}),new webpack[t(465)]({options:{versionNum:f,widgetPathsList:l,enableLazyComponent:enableLazyComponent,srcPath:rootDir}}),new LoggerPlugin],node:{global:!1},stats:t(425),resolve:{mainFields:[t(451),t(570),t(444),t(494)],modules:[path[t(422)](__dirname,"..",t(561)),path[t(422)](__dirname,"..","..","..",t(561)),t(561)]},optimization:{noEmitOnErrors:!1,minimize:IS_PRD}},IS_PRD||(l[t(417)][t(540)]=t(554)),global._isHarmony||l[t(532)][t(558)](new HandlerPlugin({enableE2e:enableE2e})),"smart"!==splitChunksMode){e[t(416)]=20;break}if(f<SPLIT_CHUNKS_SUPPORT_VERSION_FROM)throw t(516)+t(541).concat(SPLIT_CHUNKS_SUPPORT_VERSION_FROM,".");e.next=18;break;case 18:l[t(532)][t(558)](new SplitChunksAdaptPlugin({subpackages:u,disableSubpackages:!1})),l[t(417)].splitChunks=splitChunksConfig;case 20:return global._isHarmony&&(f=require(t(446)),l[t(532)].push(new f({buildPath:buildPath,projectPath:projectPath,packageName:a})),l[t(445)]=!1,l[t(417)][t(540)]=t(507)),norpk||global._isHarmony||l.plugins[t(558)](new ZipPlugin({name:a,sourceRoot:rootDir,signRoot:signPath,output:zipPath,buildPath:buildPath,sign:signFlag,privateKeyStr:n,dssConfig:o,subpackages:u,IS_PRD:IS_PRD,isWeb:!1})),quickAppConfig[t(573)]&&(quickAppConfig=_objectSpread(_objectSpread({},quickAppConfig),quickAppConfig[t(573)])),postHook(l,quickAppConfig),e[t(590)](t(536),l);case 25:case"end":return e[t(437)]()}},e)})))[t(436)](this,arguments)}module.exports=getWebpackCfg;