{"_id":"@surma/rollup-plugin-off-main-thread","_rev":"1455092","name":"@surma/rollup-plugin-off-main-thread","description":"Use Rollup with workers and ES6 modules today.","dist-tags":{"latest":"2.2.3"},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"time":{"modified":"2021-11-08T05:46:02.000Z","created":"2019-07-21T15:53:03.934Z","2.2.3":"2021-11-02T12:45:58.336Z","2.2.2":"2021-05-20T16:10:14.399Z","2.2.1":"2021-05-05T13:17:16.314Z","2.2.0":"2021-05-05T12:38:53.624Z","2.1.0":"2021-02-24T15:22:42.358Z","2.0.0":"2021-01-25T12:09:47.261Z","1.4.2":"2020-11-11T14:11:19.925Z","1.4.1":"2020-03-02T17:38:32.340Z","1.4.0":"2020-03-02T17:11:07.896Z","1.3.0":"2020-02-28T12:49:52.366Z","1.2.0":"2020-02-25T18:49:38.633Z","1.1.1":"2019-07-21T15:53:03.934Z"},"users":{},"author":{"name":"Surma","email":"surma@google.com"},"repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"versions":{"2.2.3":{"name":"@surma/rollup-plugin-off-main-thread","version":"2.2.3","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","chalk":"^2.4.2","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":"2.2.0"},"repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"dependencies":{"ejs":"^3.1.6","json5":"^2.2.0","magic-string":"^0.25.0","string.prototype.matchall":"^4.0.6"},"gitHead":"27e2a18c788b2153fa241b1bd29f24f4a2c4ecbc","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@2.2.3","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"shasum":"ee34985952ca21558ab0d952f00298ad2190c053","size":16979,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-2.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-2.2.3.tgz"},"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_2.2.3_1635857158178_0.21507512759988012"},"_hasShrinkwrap":false,"publish_time":1635857158336,"_cnpm_publish_time":1635857158336},"2.2.2":{"name":"@surma/rollup-plugin-off-main-thread","version":"2.2.2","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","chalk":"^2.4.2","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":"2.2.0"},"repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"dependencies":{"ejs":"^3.1.6","json5":"^2.2.0","magic-string":"^0.25.0"},"gitHead":"c967772f1d1475a5a393ae94c493c2a55227540e","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@2.2.2","_nodeVersion":"15.12.0","_npmVersion":"7.7.4","dist":{"shasum":"12e062b299c9305c1e6c30fdac89c3222e0aa83f","size":16921,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-2.2.2.tgz"},"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_2.2.2_1621527014265_0.3044501607517096"},"_hasShrinkwrap":false,"publish_time":1621527014399,"_cnpm_publish_time":1621527014399},"2.2.1":{"name":"@surma/rollup-plugin-off-main-thread","version":"2.2.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","chalk":"^2.4.2","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":"2.2.0"},"repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"dependencies":{"ejs":"^3.1.6","json5":"^2.2.0","magic-string":"^0.25.0"},"gitHead":"7580b0c0200933332137f13e10dcc0638809c9b6","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@2.2.1","_nodeVersion":"15.6.0","_npmVersion":"7.11.2","dist":{"shasum":"6b30055c9e5775d1cfe77cb877d194bad3234d2a","size":16713,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-2.2.1.tgz"},"_npmUser":{"name":"rreverser","email":"me@rreverser.com"},"directories":{},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_2.2.1_1620220636210_0.960914026824681"},"_hasShrinkwrap":false,"publish_time":1620220636314,"_cnpm_publish_time":1620220636314},"2.2.0":{"name":"@surma/rollup-plugin-off-main-thread","version":"2.2.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","chalk":"^2.4.2","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":"2.2.0"},"repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"dependencies":{"ejs":"^3.1.6","json5":"^2.2.0","magic-string":"^0.25.0"},"gitHead":"77eff7b5749b1c4d3b2053590be28ca524b10373","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@2.2.0","_nodeVersion":"15.6.0","_npmVersion":"7.11.2","dist":{"shasum":"bb549fe272ee991816d5aba494452e9e1fa92a9f","size":16706,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-2.2.0.tgz"},"_npmUser":{"name":"rreverser","email":"me@rreverser.com"},"directories":{},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_2.2.0_1620218333462_0.295533778260475"},"_hasShrinkwrap":false,"publish_time":1620218333624,"_cnpm_publish_time":1620218333624},"2.1.0":{"name":"@surma/rollup-plugin-off-main-thread","version":"2.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","chalk":"^2.4.2","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":"2.2.0"},"repository":{"type":"git","url":"git+https://github.com/surma/rollup-plugin-off-main-thread.git"},"dependencies":{"ejs":"^2.6.1","json5":"^2.2.0","magic-string":"^0.25.0","tippex":"^3.0.0"},"gitHead":"0dc070bffac2cdde9fd85ef24010415d87186e86","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@2.1.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.11","dist":{"shasum":"088615587bf11fa1368ebc14c78b7256f7a02016","size":17082,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-2.1.0.tgz"},"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_2.1.0_1614180161671_0.9791767184003124"},"_hasShrinkwrap":false,"publish_time":1614180162358,"_cnpm_publish_time":1614180162358},"2.0.0":{"name":"@surma/rollup-plugin-off-main-thread","version":"2.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":"2.0.0-0"},"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","tippex":"^3.0.0"},"gitHead":"836311dcf03dc3d0318d8472180c605d61d3f732","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@2.0.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.9","dist":{"shasum":"76351505c9e9f588fb54358c98e5a606a06cc22b","size":15885,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-2.0.0.tgz"},"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_2.0.0_1611576587122_0.7910664065790205"},"_hasShrinkwrap":false,"publish_time":1611576587261,"_cnpm_publish_time":1611576587261},"1.4.2":{"name":"@surma/rollup-plugin-off-main-thread","version":"1.4.2","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":"2.0.0-0"},"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":"15d7b01acf36a0532cca8f1ad663ec6460c64a6e","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@1.4.2","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"shasum":"e6786b6af5799f82f7ab3a82e53f6182d2b91a58","size":14751,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-1.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-1.4.2.tgz"},"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_1.4.2_1605103879792_0.5778528345798681"},"_hasShrinkwrap":false,"publish_time":1605103879925,"_cnpm_publish_time":1605103879925},"1.4.1":{"name":"@surma/rollup-plugin-off-main-thread","version":"1.4.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":"2.0.0-0"},"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":"640c74295778b23b430b40b4c23c93b3ccbe7f4e","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@1.4.1","_nodeVersion":"12.8.0","_npmVersion":"6.12.1","dist":{"shasum":"bf1343e5a926e5a1da55e3affd761dda4ce143ef","size":14693,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-1.4.1.tgz"},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_1.4.1_1583170712219_0.21556866116200646"},"_hasShrinkwrap":false,"publish_time":1583170712340,"_cnpm_publish_time":1583170712340},"1.4.0":{"name":"@surma/rollup-plugin-off-main-thread","version":"1.4.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":"2.0.0-0"},"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":"038e1c4e98598e3070dd1f58019b41f4a3c74052","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@1.4.0","_nodeVersion":"12.8.0","_npmVersion":"6.12.1","dist":{"shasum":"d5573d228754765d26bf3fc19f4b96cc24ef5c62","size":14672,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-1.4.0.tgz"},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_1.4.0_1583169067743_0.7252662854211147"},"_hasShrinkwrap":false,"publish_time":1583169067896,"_cnpm_publish_time":1583169067896},"1.3.0":{"name":"@surma/rollup-plugin-off-main-thread","version":"1.3.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":"2.0.0-0"},"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":"af1afa42a6645ba9b49c79b805d0942a281e978e","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@1.3.0","_nodeVersion":"13.9.0","_npmVersion":"6.13.7","dist":{"shasum":"848c9f6454148f492c109208d81fdb7d7ba07241","size":13660,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-1.3.0.tgz"},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_1.3.0_1582894192262_0.9598319026732858"},"_hasShrinkwrap":false,"publish_time":1582894192366,"_cnpm_publish_time":1582894192366},"1.2.0":{"name":"@surma/rollup-plugin-off-main-thread","version":"1.2.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.31.1"},"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":"1f2fe8741d1547709ba20e582e31b0a80c70a4d1","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@1.2.0","_nodeVersion":"12.8.0","_npmVersion":"6.12.1","dist":{"shasum":"215925958df1b7b229f3af1adb8ce00bf2d5e8e4","size":13215,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-1.2.0.tgz"},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_1.2.0_1582656578502_0.9531027572305493"},"_hasShrinkwrap":false,"publish_time":1582656578633,"_cnpm_publish_time":1582656578633},"1.1.1":{"name":"@surma/rollup-plugin-off-main-thread","version":"1.1.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":"ec4e056b04534b8ca6012aaead791965b7b96943","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","_id":"@surma/rollup-plugin-off-main-thread@1.1.1","_nodeVersion":"12.2.0","_npmVersion":"6.10.1","dist":{"shasum":"f30bd28de9c5ec614ab9d5143eb1bd809a15520c","size":11778,"noattachment":false,"key":"/@surma/rollup-plugin-off-main-thread/-/@surma/rollup-plugin-off-main-thread-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@surma/rollup-plugin-off-main-thread/download/@surma/rollup-plugin-off-main-thread-1.1.1.tgz"},"maintainers":[{"name":"rreverser","email":""},{"name":"surma","email":"surma@surmair.de"}],"_npmUser":{"name":"surma","email":"surma@surma.link"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-off-main-thread_1.1.1_1563724383801_0.6002493493086638"},"_hasShrinkwrap":false,"publish_time":1563724383934,"_cnpm_publish_time":1563724383934}},"readme":"# rollup-plugin-off-main-thread\n\nUse Rollup with workers and ES6 modules _today_.\n\n```\n$ npm install --save @surma/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\nI set up [a gist] to show a full setup with OMT.\n\n### Config\n\n```js\n// rollup.config.js\nimport OMT from \"@surma/rollup-plugin-off-main-thread\";\n\nexport default {\n  input: [\"src/main.js\"],\n  output: {\n    dir: \"dist\",\n    // You _must_ use either “amd” or “esm” as your format.\n    // But note that only very few browsers have native support for\n    // modules in workers.\n    format: \"amd\"\n  },\n  plugins: [OMT()]\n};\n```\n\n### Auto bundling\n\nIn your project's code use a module-relative path via `new URL` to include a Worker:\n\n```js\nconst worker = new Worker(new URL(\"worker.js\", import.meta.url), {\n  type: \"module\"\n});\n```\n\nThis will just work.\n\nIf required, the plugin also supports plain literal paths:\n\n```js\nconst worker = new Worker(\"./worker.js\", { type: \"module\" });\n```\n\nHowever, those are less portable: in Rollup they would result in module-relative\npath, but if used directly in the browser, they'll be relative to the document\nURL instead.\n\nHence, they're deprecated and `new URL` pattern is encouraged instead for portability.\n\n### Importing workers as URLs\n\nIf your worker constructor doesn't match `workerRegexp` (see options below), you might find it easier to import the worker as a URL. In your project's code:\n\n```js\nimport workerURL from \"omt:./worker.js\";\nimport paintWorkletURL from \"omt:./paint-worklet.js\";\n\nconst worker = new Worker(workerURL, { name: \"main-worker\" });\nCSS.paintWorklet.addModule(paintWorkletURL);\n```\n\n`./worker.js` and `./paint-worklet.js` will be added to the output as chunks.\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- `urlLoaderScheme`: Scheme to use when importing workers as URLs. If `undefined`, OMT will use `\"omt\"`.\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","_attachments":{},"homepage":"https://github.com/surma/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/surma/rollup-plugin-off-main-thread/issues"},"license":"Apache-2.0"}