{"_id":"rollup-plugin-off-main-thread","_rev":"5-969f9fdaf260ef7a7c44c904b16b74ed","name":"rollup-plugin-off-main-thread","dist-tags":{"latest":"1.1.0","next":"1.1.1-0"},"versions":{"1.0.0":{"name":"rollup-plugin-off-main-thread","version":"1.0.0","description":"Use Rollup with workers and ES6 modules today.","main":"index.js","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","devDependencies":{"chai":"4.2.0","karma":"4.2.0","karma-chai":"0.1.0","karma-chrome-launcher":"3.0.0","karma-firefox-launcher":"1.1.0","karma-mocha":"1.3.0","karma-safari-launcher":"1.0.0","karma-safaritechpreview-launcher":"2.0.2","mocha":"6.1.4","prettier":"1.18.2","rollup":"1.16.2"},"repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"dependencies":{"ejs":"^2.6.1","magic-string":"^0.25.0"},"gitHead":"49a5896963d25e103048411961586dd4dae10e6d","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"rollup-plugin-off-main-thread@1.0.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-6V8m+Out2R3pTNfxojic+1LRvqJZBELTD0249HHeJADMXU2M9CphH29wS9VL/BnH7L/GHzOo+rCNJuPs3ZFeCQ==","shasum":"fcba42836a6f5baa774c0dc62deb0dd8baaf9872","tarball":"https://registry.npmjs.org/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-1.0.0.tgz","fileCount":52,"unpackedSize":56187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMJgGCRA9TVsSAnZWagAAyeYP/i3I38CZLYoziLmTUSlt\nRmh0AaYg/Dr2tEkGxkrR8mCovLrVoC6AD5DHuRCm/pXRPhtSA8vzvTL63rFy\nzah00SWIjBdofkvUieOdBjJsfOCUdaR2fcBJvXPQQkEjHwEvDH1ZyoUrHqI5\n3eSarM15AhREKfAoRzrZeiFD31fnZqjcIboS0BVEVT8W5UMXuBbphKpc/Pbh\nkAoFoBOdd0Crj9YwrMZBywkhkX0me+voSSYn1BJHt36PmVZwQGG9OTYVSWPJ\nGG5QJDTGQBO2KqML20b6EEfCwKZYB9UrzualeEAIeb/PNNV8MIbLe4/pxjA8\nWjMjcJXmYWI8NBTgm/wndfTUzzkTn0pKe26LpzDjp2AIy6jW+bSEt+FLXgUX\nqoYolLztC4WLpOSgbIhlFnxf8NLuH71a1H0BHKxCAWk9ZRTEdg3cDoUGjJQ5\ndsE7ptFTpjj9IaEklv+UIsq5nLl8/uWbVkUOrBYGYtuy2yn1PQMLsL91ZNHX\nlO1hN02zezYmuHOCIl/dGa4Gl5tFuDaa68R/gf9c1wFs0EfZIAEXyGk+yt7p\nOxD8ThmVRFeRQ7X+YFlk1HyLG5jyJpU+B8V3Q92Kc138Pnm5mhY3wxm8bnNl\nKrNFP1OsW8Sy6Uud797M1qlBL4EkqC+2O9qcDN22aZcPvu34CKThb9HhmI6O\ncAFz\r\n=1qmP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZNo4RNIeYH+nNK9Z8X+pE9B3L6YJRgYN0KIJN+lITdAIgBA8U5R/e2EwRjqoQ0MF+1SeyfNdUxlk3ARvf4b/2oRo="}]},"maintainers":[{"name":"surma","email":"surma@surma.link"}],"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_1.0.0_1563465733746_0.3547342913842886"},"_hasShrinkwrap":false,"deprecated":"For compatibility with GitHub’s npm registry, this package has moved to @surma/rollup-plugin-off-main-thread"},"1.0.1":{"name":"rollup-plugin-off-main-thread","version":"1.0.1","description":"Use Rollup with workers and ES6 modules today.","main":"index.js","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","devDependencies":{"chai":"4.2.0","karma":"4.2.0","karma-chai":"0.1.0","karma-chrome-launcher":"3.0.0","karma-firefox-launcher":"1.1.0","karma-mocha":"1.3.0","karma-safari-launcher":"1.0.0","karma-safaritechpreview-launcher":"2.0.2","mocha":"6.1.4","prettier":"1.18.2","rollup":"1.16.2"},"repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"dependencies":{"ejs":"^2.6.1","magic-string":"^0.25.0"},"gitHead":"05d702881b7eb444a7c1c0186e3e5d56a10061e1","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"rollup-plugin-off-main-thread@1.0.1","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-RwNLBmg3+Hovda0REDeyo8H74YUf35YGBcj35dUg/JOcUWGQxZfmG2fYg1eCd9Ho0sLyyegjHa1rJxYUydx0hQ==","shasum":"5768ec7983b082b5e8e8dfe0ccc3473b8d031869","tarball":"https://registry.npmjs.org/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-1.0.1.tgz","fileCount":52,"unpackedSize":56310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMJvjCRA9TVsSAnZWagAAPMMP/3j1/Dx4S0WhN7p/7/54\nya3CPhT3Sqxp/agJ7xKaDUJ/q5ThxBTV7VFN0PsAMe9zJA+xg+frvEI4zpYf\nwJXy1jn/l1PpQPPuklj8p91wG+dh4FY1sbIIgJUc2pVkh8hBjWuDuRNfv6CG\npa1JvEGx73hyzKQtKnAYzxE9N0TMUHT2ShY4W71OiLGmlXt/2ALTSMS8IwI+\nLmVupUPFuVRq8WDNCLTugJPxj1AOYsZkwiG2CkSorOoroL7QtO1Sohif7fhp\n69pj9XCyisdZFMrwDrmn79OILUm4UiBRC5ctPZ6YT80SUQAVGNbCLNmp28iI\nR8SEIPtT1aY2SqJbW8HFTFQFmt73GCn36ljP49ptJY3QRGXwY6frkmgA0KZn\nEllXspBv7fE3ARAhTjjfhpOxr4YSprrdJVr0wa+Oso8bnAevmdqzyn63Tbvv\nlflcb9ypcR4JjhWenf1Vq0H0NxnmFhOQI82VjY/cKY1dliAgmt+ffQXC/6qg\nbozyB23Rr7TNRTIGCbQ7TglvuhqSzSYMl3yfMIwt6wk5e/6lhkWCzsHs/P3M\nH+Vj6/OaYVMSIeLoqkr7dgadftk2Ojbn5ppkv/mQPIN63408WUufZLmijFtq\nFsFq5jl48bhN2TVnKqLHYldEGwcS7LuosdzC+6dD8OmT2na+/Ja4u5e4Hir8\nxO1P\r\n=222O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7/dH8Np2rG5uIAN50wlow8CSwd8wONty8XOPLSI0hUwIhAPEI8tzwsc2QNcZdvAgtlyvwn9tQm+FW3Xi8uZl2U48b"}]},"maintainers":[{"name":"surma","email":"surma@surma.link"}],"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_1.0.1_1563466723176_0.243011204624763"},"_hasShrinkwrap":false,"deprecated":"For compatibility with GitHub’s npm registry, this package has moved to @surma/rollup-plugin-off-main-thread"},"1.1.0":{"name":"rollup-plugin-off-main-thread","version":"1.1.0","description":"Use Rollup with workers and ES6 modules today.","main":"index.js","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","devDependencies":{"chai":"4.2.0","karma":"4.2.0","karma-chai":"0.1.0","karma-chrome-launcher":"3.0.0","karma-firefox-launcher":"1.1.0","karma-mocha":"1.3.0","karma-safari-launcher":"1.0.0","karma-safaritechpreview-launcher":"2.0.2","mocha":"6.1.4","prettier":"1.18.2","rollup":"1.16.2"},"repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"dependencies":{"ejs":"^2.6.1","magic-string":"^0.25.0"},"gitHead":"0f55c8422fd9c5ee28a152fc23be6e7f7767d448","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"rollup-plugin-off-main-thread@1.1.0","_nodeVersion":"12.2.0","_npmVersion":"6.10.1","dist":{"integrity":"sha512-bt2ZkWyetvwWBYqunL/GBqmGaV3KuhEWFo4V/MSnyydBKqLLYDMtqhU//cVrEK7DUKhJkY0HmA1upwpIuFx6Xw==","shasum":"ddddaff452a0b4d7eaf2bf6bfd7685051452dab6","tarball":"https://registry.npmjs.org/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-1.1.0.tgz","fileCount":52,"unpackedSize":55537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMPE6CRA9TVsSAnZWagAAKyMQAJiCZg2VTftLGKCyD3IB\nHyC+xwrvNrQo5P+rbny6QUuJJqzmLUDvaK5ZFWL5GNDyQIgI/QGvf/ZKCLOF\nvZvkEDkyMz8aMnRcZ3h1pPFYWT1ifCvMyimxEhEVmOk3CWV8njg+Cn9glU1K\n/I4yBFEgc5uTRTvoKEA8gP3kM5O4oI1iqQGztuIb2svsM8zjRkpUCLJ202Bv\nZoVPTXpcIxHdqQ3hzTcxev6LQ/ZFdZi+yNBOASwAppFV4Fseashgj7ZXzj6s\n/xSYqIIOxYVizZ1YQj4BKQ/a3PvQIwrYrchya/fJnZ9uoCg0EwC6Qhm04y/w\nj4RgAnkvAjvoGyrXuOqr1Zdv48y+BhyGzF3XEQBwgbh3XVatvIgFAzm4hEC6\n9u4ojM5+4TqCSZNNWaN1J2BbtNewo7+lUYBzAO8vSwL4tdQwZslo+VPMHi2X\nUSecDQ7OSicMCj/F3xbIQ+v3ECYn+OBSxqvtjoULBVSLpYL8PZ2whHl/BxBB\nBxDKoHCxM6Y/eOourQ9+UxgzQFmzzziL+aUfKZsba3UXfFe/fdgX7LizFYBI\npNrxNvOqn9nXXnfVW4c5zsJL0SwVSmHf/l1jyV1DwuclGbVR5oWRPtfMwF3s\nAIorV5iulP0VQAzckTV7mW4yZfmsEUhNVFz/9LrjY/SLtXOrJQQrcvd5HNSI\n2YbF\r\n=fYx4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFx8MjOu5mneLrh/hjGtPH3boFoS+Ji5FIH2uB9kNgeAiA+yE3zEjyUPiqOOk2uv3QOndFe//qiC5Mnsou+Uz/0qw=="}]},"maintainers":[{"name":"surma","email":"surma@surma.link"}],"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_1.1.0_1563488570205_0.011199706017507527"},"_hasShrinkwrap":false,"deprecated":"For compatibility with GitHub’s npm registry, this package has moved to @surma/rollup-plugin-off-main-thread"},"1.1.1-0":{"name":"rollup-plugin-off-main-thread","version":"1.1.1-0","description":"Use Rollup with workers and ES6 modules today.","main":"index.js","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","devDependencies":{"chai":"4.2.0","karma":"4.2.0","karma-chai":"0.1.0","karma-chrome-launcher":"3.0.0","karma-firefox-launcher":"1.1.0","karma-mocha":"1.3.0","karma-safari-launcher":"1.0.0","karma-safaritechpreview-launcher":"2.0.2","mocha":"6.1.4","prettier":"1.18.2","rollup":"1.16.2"},"repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"dependencies":{"ejs":"^2.6.1","magic-string":"^0.25.0"},"readme":"# rollup-plugin-off-main-thread\n\nUse Rollup with workers and ES6 modules _today_.\n\n```\n$ npm install --save rollup-plugin-off-main-thread\n```\n\nWorkers are JavaScript’s version of threads. [Workers are important to use][when workers] as the main thread is already overloaded, especially on slower or older devices.\n\nThis plugin takes care of shimming module support in workers and allows you to use `new Worker()`.\n\nOMT is the result of merging loadz0r and workz0r.\n\n## Usage\n\n```js\n// rollup.config.js\nimport OMT from \"rollup-plugin-off-main-thread\";\n\nexport default {\n  input: [\"src/main.js\"],\n  output: {\n    dir: \"dist\",\n    // You _must_ use “amd” as your format\n    format: \"amd\"\n  },\n  plugins: [OMT()]\n};\n```\n\nI set up [a gist] to show a full setup with OMT.\n\n## Options\n\n```js\n{\n  // ...\n  plugins: [OMT(options)];\n}\n```\n\n- `loader`: A string containing the EJS template for the amd loader. If `undefined`, OMT will use `loader.ejs`.\n- `useEval`: Use `fetch()` + `eval()` to load dependencies instead of `<script>` tags and `importScripts()`. _This is not CSP compliant, but is required if you want to use dynamic imports in ServiceWorker_.\n- `workerRegexp`: A RegExp to find `new Workers()` calls. The second capture group _must_ capture the provided file name without the quotes.\n- `amdFunctionName`: Function name to use instead of AMD’s `define`.\n- `prependLoader`: A function that determines whether the loader code should be prepended to a certain chunk. Should return true if the load is suppsoed to be prepended.\n\n[when workers]: https://dassur.ma/things/when-workers\n[a gist]: https://gist.github.com/surma/a02db7b53eb3e7870bf539b906ff6ff6\n\n---\n\nLicense Apache-2.0\n","readmeFilename":"README.md","gitHead":"7be5a461dd0b91bb90ad7722eb7225cde7f5666d","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"rollup-plugin-off-main-thread@1.1.1-0","_nodeVersion":"12.2.0","_npmVersion":"6.10.1","dist":{"integrity":"sha512-SSgcQus7y/ZoMXj2I41A/zRish5sKcL03XUAygrRywhJcJo331k5VNiZrrtnS4mk+V38SfwgIFP2u5g8tzdjDQ==","shasum":"7fec475591b72e3351f15a7cc37adef43e570a80","tarball":"https://registry.npmjs.org/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-1.1.1-0.tgz","fileCount":52,"unpackedSize":55728,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNIiMCRA9TVsSAnZWagAAe1gQAJd0QgqQnf93PK8UPO5K\n8ofzSrd9lbwX2GGyMvakQaVwB5BNPmQpbifsImRkR290ZLyVqX4A2QxL/pDr\nZU3lWceTK3Y3pMsIAt0L5R/4PvR9QQ4KQ6BqEkZffLNHvCWsj2pEap+dkqIZ\nTjEwS2j0olmoUVeJq2E0+vCWSdhPSaG1OoWyNiVgPVOLg4kRliwdsJgHp1qD\nOSK1MLVmpHISWR7OEa+NwD5YYNctp8NTmzGuQt/oHxBDsff/WuohFGJUGLMH\niegBKS+CS1JCHeJqbL4rG+Jr7Y3tVCoZ8N9of0O2I9TucT8T6xCxZG5Xni9R\nwqfc6rmldRwcPFEivRPQnt32nNVihXqHSq7OxR4INOV1lkMAnNTJbJlcH3aa\nPZtcTRmxj0wcrZwblq6wCQVqHG3uJ2Nab7KIXKE6yaKeGOXSZrcpAruFou7c\n4Ikeg5PraCze9+woTdUoz6p8uUUPKTK2rV+RW3vXjy1mHHEnHYCFJZQeabxF\nXFa5gINm3ZnzSYquRqwUGs81AUKlfflm/ALgTnpueHC88LqzyQgTqJTUHxdx\nUpc+PS+aVqOfOvUEhNVA9KwV9RDZ3M3i+gBXgUoYV6jfLy7izHX7K1J+5qhg\noK0OJkB946DaRbiM0lKNo+iYlBhsn5cCuaUu+W0exD6YMniYOeCWKXkUv6Fa\nuALH\r\n=fADS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiXh/g/JFqFQE89G5LVW9EYj60GPp2NX17E3p3djH6fQIgXXoFiO29QXwYtICvLyiTkAnDx9Fb/X/jdcaCiHiwpZ8="}]},"maintainers":[{"name":"surma","email":"surma@surma.link"}],"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_1.1.1-0_1563723915638_0.7726411300135474"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-18T16:02:13.745Z","1.0.0":"2019-07-18T16:02:13.875Z","modified":"2022-05-16T04:32:31.253Z","1.0.1":"2019-07-18T16:18:43.284Z","1.1.0":"2019-07-18T22:22:50.333Z","1.1.1-0":"2019-07-21T15:45:15.775Z"},"maintainers":[{"name":"surma","email":"surma@surma.link"}],"description":"Use Rollup with workers and ES6 modules today.","homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"author":{"name":"Surma","email":"surma@google.com"},"bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"license":"Apache-2.0","readme":"","readmeFilename":""}