1 | {"version":3,"file":"comlink-worker-loader.js","sources":["../src/comlink-worker-loader.js"],"sourcesContent":["/**\n * Copyright 2018 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy of\n * the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */\n\nexport default function rpcWorkerLoader (content) {\n return `import { expose } from 'comlink';\n ${content};\n expose(\n Object.keys(__webpack_exports__).reduce(function(r,k){\n if (k=='__esModule') return r;\n r[k] = __webpack_exports__[k];\n return r\n },{})\n )`;\n}\n"],"names":["rpcWorkerLoader","content"],"mappings":"AAAA;;;;;;;;;;;;;;;AAgBA,AAAe,SAASA,eAAT,CAA0BC,OAA1B,EAAmC;oDAE9CA,OAAQ;;;;;"} |