mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
1 line
4.5 KiB
JSON
1 line
4.5 KiB
JSON
{"ast":null,"code":"/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\nmodule.exports = function (updatedModules, renewedModules) {\n var unacceptedModules = updatedModules.filter(function (moduleId) {\n return renewedModules && renewedModules.indexOf(moduleId) < 0;\n });\n\n var log = require(\"./log\");\n\n if (unacceptedModules.length > 0) {\n log(\"warning\", \"[HMR] The following modules couldn't be hot updated: (They would need a full reload!)\");\n unacceptedModules.forEach(function (moduleId) {\n log(\"warning\", \"[HMR] - \" + moduleId);\n });\n }\n\n if (!renewedModules || renewedModules.length === 0) {\n log(\"info\", \"[HMR] Nothing hot updated.\");\n } else {\n log(\"info\", \"[HMR] Updated modules:\");\n renewedModules.forEach(function (moduleId) {\n if (typeof moduleId === \"string\" && moduleId.indexOf(\"!\") !== -1) {\n var parts = moduleId.split(\"!\");\n log.groupCollapsed(\"info\", \"[HMR] - \" + parts.pop());\n log(\"info\", \"[HMR] - \" + moduleId);\n log.groupEnd(\"info\");\n } else {\n log(\"info\", \"[HMR] - \" + moduleId);\n }\n });\n var numberIds = renewedModules.every(function (moduleId) {\n return typeof moduleId === \"number\";\n });\n if (numberIds) log(\"info\", \"[HMR] Consider using the NamedModulesPlugin for module names.\");\n }\n};","map":{"version":3,"sources":["/app/node_modules/webpack/hot/log-apply-result.js"],"names":["module","exports","updatedModules","renewedModules","unacceptedModules","filter","moduleId","indexOf","log","require","length","forEach","parts","split","groupCollapsed","pop","groupEnd","numberIds","every"],"mappings":"AAAA;AACA;AACA;AACA;AACAA,MAAM,CAACC,OAAP,GAAiB,UAASC,cAAT,EAAyBC,cAAzB,EAAyC;AACzD,MAAIC,iBAAiB,GAAGF,cAAc,CAACG,MAAf,CAAsB,UAASC,QAAT,EAAmB;AAChE,WAAOH,cAAc,IAAIA,cAAc,CAACI,OAAf,CAAuBD,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H;AAID;AACD,CAvCD","sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\nmodule.exports = function(updatedModules, renewedModules) {\n\tvar unacceptedModules = updatedModules.filter(function(moduleId) {\n\t\treturn renewedModules && renewedModules.indexOf(moduleId) < 0;\n\t});\n\tvar log = require(\"./log\");\n\n\tif (unacceptedModules.length > 0) {\n\t\tlog(\n\t\t\t\"warning\",\n\t\t\t\"[HMR] The following modules couldn't be hot updated: (They would need a full reload!)\"\n\t\t);\n\t\tunacceptedModules.forEach(function(moduleId) {\n\t\t\tlog(\"warning\", \"[HMR] - \" + moduleId);\n\t\t});\n\t}\n\n\tif (!renewedModules || renewedModules.length === 0) {\n\t\tlog(\"info\", \"[HMR] Nothing hot updated.\");\n\t} else {\n\t\tlog(\"info\", \"[HMR] Updated modules:\");\n\t\trenewedModules.forEach(function(moduleId) {\n\t\t\tif (typeof moduleId === \"string\" && moduleId.indexOf(\"!\") !== -1) {\n\t\t\t\tvar parts = moduleId.split(\"!\");\n\t\t\t\tlog.groupCollapsed(\"info\", \"[HMR] - \" + parts.pop());\n\t\t\t\tlog(\"info\", \"[HMR] - \" + moduleId);\n\t\t\t\tlog.groupEnd(\"info\");\n\t\t\t} else {\n\t\t\t\tlog(\"info\", \"[HMR] - \" + moduleId);\n\t\t\t}\n\t\t});\n\t\tvar numberIds = renewedModules.every(function(moduleId) {\n\t\t\treturn typeof moduleId === \"number\";\n\t\t});\n\t\tif (numberIds)\n\t\t\tlog(\n\t\t\t\t\"info\",\n\t\t\t\t\"[HMR] Consider using the NamedModulesPlugin for module names.\"\n\t\t\t);\n\t}\n};\n"]},"metadata":{},"sourceType":"script"} |