You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varWorker=require("worker!./worker");varworker=newWorker;worker.postMessage("b");worker.onmessage=function(event){vartemplateB=event.data;// "This text was generated by template B"}
/******/(function(modules){// webpackBootstrap/******/// The module cache/******/varinstalledModules={};/******//******/// The require function/******/functionrequire(moduleId){/******/// Check if module is in cache/******/if(installedModules[moduleId])/******/returninstalledModules[moduleId].exports;/******//******/// Create a new module (and put it into the cache)/******/varmodule=installedModules[moduleId]={/******/exports: {},/******/id: moduleId,/******/loaded: false/******/};/******//******/// Execute the module function/******/modules[moduleId].call(null,module,module.exports,require);/******//******/// Flag the module as loaded/******/module.loaded=true;/******//******/// Return the exports of the module/******/returnmodule.exports;/******/}/******//******/// The bundle contains no chunks. A empty chunk loading function./******/require.e=functionrequireEnsure(_,callback){/******/callback.call(null,require);/******/};/******//******/// expose the modules object (__webpack_modules__)/******/require.modules=modules;/******//******/// expose the module cache/******/require.cache=installedModules;/******//******//******/// Load entry module and return exports/******/returnrequire(0);/******/})/************************************************************************//******/({/******/// __webpack_public_path__/******/c: "",/***/0:
/*!********************!*\ !*** ./example.js ***! \********************//***/function(module,exports,require){varWorker=require(/*! worker!./worker */1);varworker=newWorker;worker.postMessage("b");worker.onmessage=function(event){vartemplateB=event.data;// "This text was generated by template B"}/***/},/***/1:
/*!*************************************************************************************************************!*\ !*** (webpack)/~/worker-loader!./worker.js ***! \*************************************************************************************************************//***/function(module,exports,require){module.exports=function(){returnnewWorker(require.modules.c+"hash.worker.js");};/***/}/******/})
js/[hash].worker.js
/******/(function(modules){// webpackBootstrap/******/// The module cache/******/varinstalledModules={};/******//******/// object to store loaded chunks/******/// "1" means "already loaded"/******/varinstalledChunks={0:1};/******//******/// The require function/******/functionrequire(moduleId){/******/// Check if module is in cache/******/if(installedModules[moduleId])/******/returninstalledModules[moduleId].exports;/******//******/// Create a new module (and put it into the cache)/******/varmodule=installedModules[moduleId]={/******/exports: {},/******/id: moduleId,/******/loaded: false/******/};/******//******/// Execute the module function/******/modules[moduleId].call(null,module,module.exports,require);/******//******/// Flag the module as loaded/******/module.loaded=true;/******//******/// Return the exports of the module/******/returnmodule.exports;/******/}/******//******/// This file contains only the entry chunk./******/// The chunk loading function for additional chunks/******/require.e=functionrequireEnsure(chunkId,callback){/******/// "1" is the signal for "already loaded"/******/if(!installedChunks[chunkId]){/******/importScripts(""+chunkId+".hash.worker.js");/******/}/******/callback.call(null,require);/******/};/******//******/// expose the modules object (__webpack_modules__)/******/require.modules=modules;/******//******/// expose the module cache/******/require.cache=installedModules;/******/this["webpackChunk"]=functionwebpackChunkCallback(chunkIds,moreModules){/******/for(varmoduleIdinmoreModules)/******/modules[moduleId]=moreModules[moduleId];/******/while(chunkIds.length)/******/installedChunks[chunkIds.pop()]=1;/******/};/******//******/// Load entry module and return exports/******/returnrequire(0);/******/})/************************************************************************//******/({/******/// __webpack_public_path__/******/c: "",/***/0:
/*!*******************!*\ !*** ./worker.js ***! \*******************//***/function(module,exports,require){onmessage=function(event){vartemplate=event.data;require.e/* require */(1,function(require){var__WEBPACK_AMD_REQUIRE_ARRAY__=[require(/*! ../require.context/templates */1)("./"+event.data)];(function(tmpl){postMessage(tmpl());}.apply(null,__WEBPACK_AMD_REQUIRE_ARRAY__));});}/***/}/******/})
js/1.[hash].worker.hs
webpackChunk([1],{/***/1:
/*!*********************************************!*\ !*** ../require.context/templates ^\.\/.*$ ***! \*********************************************//***/function(module,exports,require){varmap={"./a": 2,"./a.js": 2,"./b": 3,"./b.js": 3,"./c": 4,"./c.js": 4};functionwebpackContext(req){returnrequire(webpackContextResolve(req));};functionwebpackContextResolve(req){returnmap[req]||(function(){thrownewError("Cannot find module '"+req+"'.")}());};webpackContext.keys=functionwebpackContextKeys(){returnObject.keys(map);};webpackContext.resolve=webpackContextResolve;module.exports=webpackContext;/***/},/***/2:
/*!*****************************************!*\ !*** ../require.context/templates/a.js ***! \*****************************************//***/function(module,exports,require){module.exports=function(){return"This text was generated by template A";}/***/},/***/3:
/*!*****************************************!*\ !*** ../require.context/templates/b.js ***! \*****************************************//***/function(module,exports,require){module.exports=function(){return"This text was generated by template B";}/***/},/***/4:
/*!*****************************************!*\ !*** ../require.context/templates/c.js ***! \*****************************************//***/function(module,exports,require){module.exports=function(){return"This text was generated by template C";}/***/}})