GoScrobble/web/node_modules/.cache/babel-loader/e29cc6b0fe67d9050518c4ea1f53b033.json

1 line
5.5 KiB
JSON
Raw Normal View History

2022-04-25 02:47:15 +00:00
{"ast":null,"code":"/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\n/*globals window __webpack_hash__ */\nif (module.hot) {\n var lastHash;\n\n var upToDate = function upToDate() {\n return lastHash.indexOf(__webpack_hash__) >= 0;\n };\n\n var log = require(\"./log\");\n\n var check = function check() {\n module.hot.check(true).then(function (updatedModules) {\n if (!updatedModules) {\n log(\"warning\", \"[HMR] Cannot find update. Need to do a full reload!\");\n log(\"warning\", \"[HMR] (Probably because of restarting the webpack-dev-server)\");\n window.location.reload();\n return;\n }\n\n if (!upToDate()) {\n check();\n }\n\n require(\"./log-apply-result\")(updatedModules, updatedModules);\n\n if (upToDate()) {\n log(\"info\", \"[HMR] App is up to date.\");\n }\n }).catch(function (err) {\n var status = module.hot.status();\n\n if ([\"abort\", \"fail\"].indexOf(status) >= 0) {\n log(\"warning\", \"[HMR] Cannot apply update. Need to do a full reload!\");\n log(\"warning\", \"[HMR] \" + log.formatError(err));\n window.location.reload();\n } else {\n log(\"warning\", \"[HMR] Update failed: \" + log.formatError(err));\n }\n });\n };\n\n var hotEmitter = require(\"./emitter\");\n\n hotEmitter.on(\"webpackHotUpdate\", function (currentHash) {\n lastHash = currentHash;\n\n if (!upToDate() && module.hot.status() === \"idle\") {\n log(\"info\", \"[HMR] Checking for updates on the server...\");\n check();\n }\n });\n log(\"info\", \"[HMR] Waiting for update signal from WDS...\");\n} else {\n throw new Error(\"[HMR] Hot Module Replacement is disabled.\");\n}","map":{"version":3,"sources":["/app/node_modules/webpack/hot/dev-server.js"],"names":["module","hot","lastHash","upToDate","indexOf","__webpack_hash__","log","require","check","then","updatedModules","window","location","reload","catch","err","status","formatError","hotEmitter","on","currentHash","Error"],"mappings":"AAAA;AACA;AACA;AACA;;AACA;AACA,IAAIA,MAA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AA0BA,GAAG,CAACW,WAAJ,CAAgBF,GAAhB,CAAtC,CAAH;AACA;AACD,KAnCF;AAoCA,GArCD;;AAsCA,MAAIG,UAAU,GAAGX,OAAO,CAAC,WAAD,CAAxB;;AACAW,EAAAA,UAAU,CAACC,EAAX,CAAc,kBAAd,EAAkC,UAASC,WAAT,EAAsB;AACvDlB,IAAAA,QAAQ,GAAGkB,WAAX;;AACA,QAAI,CAACjB,QAAQ,EAAT,IAAeH,MAAM,CAACC,GAAP,CAAWe,MAAX,OAAwB,MAA3C,EAAmD;AAClDV,MAAAA,GAAG,CAAC,MAAD,EAAS,6CAAT,CAAH;AACAE,MAAAA,KAAK;AACL;AACD,GAND;AAOAF,EAAAA,GAAG,CAAC,MAAD,EAAS,6CAAT,CAAH;AACA,CArDD,MAqDO;AACN,QAAM,IAAIe,KAAJ,CAAU,2CAAV,CAAN;AACA","sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n/*globals window __webpack_hash__ */\nif (module.hot) {\n\tvar lastHash;\n\tvar upToDate = function upToDate() {\n\t\treturn lastHash.indexOf(__webpack_hash__) >= 0;\n\t};\n\tvar log = require(\"./log\");\n\tvar check = function check() {\n\t\tmodule.hot\n\t\t\t.check(true)\n\t\t\t.th