{"_id":"@trickfilm400/rollup-plugin-off-main-thread","_rev":"1572255","name":"@trickfilm400/rollup-plugin-off-main-thread","description":"Use Rollup with workers and ES6 modules today.","dist-tags":{"beta":"4.0.0-pre3","latest":"4.0.0"},"maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"time":{"modified":"2026-10-16T01:35:16.000Z","created":"2024-05-22T21:10:00.355Z","4.0.0":"2026-10-06T20:31:45.957Z","4.0.0-pre3":"2026-10-06T17:27:05.357Z","4.0.0-pre2":"2026-07-15T20:23:01.270Z","4.0.0-pre1":"2026-05-26T18:38:44.559Z","3.1.0-pre2":"2025-12-03T22:12:39.770Z","3.0.0-pre1":"2025-12-02T16:21:14.510Z","2.5.0":"2025-12-02T15:49:26.548Z","2.4.3":"2024-06-20T05:19:42.214Z","2.4.0":"2024-05-22T21:31:35.979Z","2.3.0":"2024-05-22T21:15:43.447Z","2.2.3-fix":"2024-05-22T21:10:00.355Z"},"users":{},"author":{"name":"Surma","email":"surma@google.com"},"repository":{"url":"git+https://github.com/Trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"versions":{"4.0.0":{"_id":"@trickfilm400/rollup-plugin-off-main-thread@4.0.0","bugs":{"url":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"cfa69cc048ffdc8e1943ee31b8bb7e5a56a4e7b5","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-4.0.0.tgz","integrity":"sha512-rQSqTcqD5c1H1qAR2XO1wHYGtd3NbMdU7oMD0gDW7xkxEIQ/fDe0MCMJtdDqVSrmmznxL2xfcxnGnusXX9JKBQ==","fileCount":6,"unpackedSize":29685,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@trickfilm400%2frollup-plugin-off-main-thread@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDWQ1kRDD2AenLESzID+jRQ9nGqbqm0BqrsLNHeiHGGQQIhAIVLoIXBDObZwa8f83jtB65EIpsKE11eC8OPbj171oMx"}],"size":10104,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-4.0.0.tgz"},"main":"index.js","name":"@trickfilm400/rollup-plugin-off-main-thread","author":{"name":"Surma","email":"surma@google.com"},"engines":{"node":">=12"},"gitHead":"710d9cb0cf858fd943954616b8563509767c1cc7","license":"Apache-2.0","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"version":"4.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"81571caa-63ca-4d62-a709-2341bcf8d6fa"},"approver":{"name":"trickfilm400","email":"trickfilm400@gmail.com"}},"homepage":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread#readme","repository":{"url":"git+https://github.com/Trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"12.2.0","description":"Use Rollup with workers and ES6 modules today.","directories":{},"maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"_nodeVersion":"24.21.0","contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"dependencies":{"ejs":"^7.0.1","json5":"^2.2.3","magic-string":"^0.30.21"},"devDependencies":{"chai":"4.5.0","chalk":"^4.1.2","karma":"^6.4.4","mocha":"^12.0.3","rollup":"^4.64.0","prettier":"^3.9.9","karma-chai":"0.1.0","karma-mocha":"^2.0.1","karma-chrome-launcher":"3.2.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"^2.1.3","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rollup-plugin-off-main-thread_4.0.0_1791318705856_0.5940019054013337"},"_hasShrinkwrap":false,"publish_time":1791318705957,"_cnpm_publish_time":1791318705957},"4.0.0-pre3":{"name":"@trickfilm400/rollup-plugin-off-main-thread","version":"4.0.0-pre3","author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","_id":"@trickfilm400/rollup-plugin-off-main-thread@4.0.0-pre3","maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"homepage":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"bb927e9424cf2b6bcabf0fd5626417af1371fd68","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-4.0.0-pre3.tgz","fileCount":6,"integrity":"sha512-pTD4M4OJJnz9XM8ojVRN2HTN9DHGtPZeVyhKszv6vRjiO7QKeNXIikKyJorV2DrXziiz430DKug6BFOUTywDAg==","signatures":[{"sig":"MEUCIBgpKJQQj/aOovDyyI3j/GBI8wd/aMUC7ProRsPd3lpZAiEA1Fm6hhRcuYK2zdc153qT8Xq0aIr449KgltjQadi7I/8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@trickfilm400%2frollup-plugin-off-main-thread@4.0.0-pre3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29690,"size":10108,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-4.0.0-pre3.tgz"},"main":"index.js","engines":{"node":">=12"},"gitHead":"59798a4e5524dfc2c6023fa03c0e5509b3e72f8d","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"trickfilm400","email":"trickfilm400@gmail.com"},"trustedPublisher":{"id":"github","oidcConfigId":"81571caa-63ca-4d62-a709-2341bcf8d6fa"}},"repository":{"url":"git+https://github.com/Trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"12.2.0","description":"Use Rollup with workers and ES6 modules today.","directories":{},"_nodeVersion":"24.21.0","dependencies":{"ejs":"^7.0.1","json5":"^2.2.3","magic-string":"^0.30.21"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"4.5.0","chalk":"^4.1.2","karma":"^6.4.4","mocha":"^12.0.3","rollup":"^4.64.0","prettier":"^3.9.9","karma-chai":"0.1.0","karma-mocha":"^2.0.1","karma-chrome-launcher":"3.2.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"^2.1.3","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-off-main-thread_4.0.0-pre3_1791307625265_0.38549757297653375","host":"s3://npm-registry-packages-npm-production"},"publish_time":1791307625357,"_cnpm_publish_time":1791307625357},"4.0.0-pre2":{"name":"@trickfilm400/rollup-plugin-off-main-thread","version":"4.0.0-pre2","author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","_id":"@trickfilm400/rollup-plugin-off-main-thread@4.0.0-pre2","maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"homepage":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"a014aa37986f9fa8154f730abf1146c7eb30e3c5","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-4.0.0-pre2.tgz","fileCount":6,"integrity":"sha512-DqyAoY6cbDi52bs4p2RJ+XPjLh6QjpDdgkTub0gp2pqeLiK8ADBdg2Hadpzg2hRrwlxoXD9vXG3TEiAjyhPCBg==","signatures":[{"sig":"MEUCIAzYSbn3MWICmreFgWLM6TUjLblg9vW2ulKkJytSWht4AiEAhpKxZf2D1W+292GMnKaI23kasKLpGquHl/H3MmXmXqo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@trickfilm400%2frollup-plugin-off-main-thread@4.0.0-pre2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29690,"size":10110,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-4.0.0-pre2.tgz"},"main":"index.js","engines":{"node":">=12"},"gitHead":"8c65db400064b2b5755bf4f7111f36904387b516","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"trickfilm400","email":"trickfilm400@gmail.com"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:81571caa-63ca-4d62-a709-2341bcf8d6fa"}},"repository":{"url":"git+https://github.com/Trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"12.0.1","description":"Use Rollup with workers and ES6 modules today.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"ejs":"^6.0.1","json5":"^2.2.3","magic-string":"^0.30.21"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"4.5.0","chalk":"^4.1.2","karma":"^6.4.4","mocha":"^11.7.6","rollup":"^4.62.2","prettier":"^3.9.5","karma-chai":"0.1.0","karma-mocha":"^2.0.1","karma-chrome-launcher":"3.2.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"^2.1.3","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-off-main-thread_4.0.0-pre2_1784146981190_0.13428734737741133","host":"s3://npm-registry-packages-npm-production"},"publish_time":1784146981270,"_cnpm_publish_time":1784146981270},"4.0.0-pre1":{"name":"@trickfilm400/rollup-plugin-off-main-thread","version":"4.0.0-pre1","author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","_id":"@trickfilm400/rollup-plugin-off-main-thread@4.0.0-pre1","maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"homepage":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"b8bc798860f31350607a7525583ee35e740bb10b","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-4.0.0-pre1.tgz","integrity":"sha512-t1lVL0MjwIl6i2SezZQKXEnHGpuxgAULc4dicRFczgHfhi0ecUrkzkdkRUpYcl4B3y0zS+dJ8CrbKg4Ua4CiUg==","signatures":[{"sig":"MEQCIH+xS7E7VxmT865Oys3UpmzTxz7b0Ffa1NXE0Lck4mGEAiA8bgOV0i9I0LFIfzlTkkRcwLOAowk7HA3Oh9IOVQzuXg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@trickfilm400%2frollup-plugin-off-main-thread@4.0.0-pre1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"size":10109,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-4.0.0-pre1.tgz"},"main":"index.js","engines":{"node":">=12"},"gitHead":"2b94a845fb30b1084fc702875d8fe9357f748165","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"_npmUser":{"name":"trickfilm400","email":"trickfilm400@gmail.com"},"repository":{"url":"git+https://github.com/Trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"11.15.0","description":"Use Rollup with workers and ES6 modules today.","directories":{},"_nodeVersion":"24.15.0","dependencies":{"ejs":"^6.0.1","json5":"^2.2.3","magic-string":"^0.30.21"},"readmeFilename":"README.md","devDependencies":{"chai":"4.5.0","chalk":"^4.1.2","karma":"^6.4.4","mocha":"^11.7.5","rollup":"^4.53.3","prettier":"^3.7.3","karma-chai":"0.1.0","karma-mocha":"^2.0.1","karma-chrome-launcher":"3.2.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"^2.1.3","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-off-main-thread_4.0.0-pre1_1779820724456_0.14242973951002091","host":"s3://npm-registry-packages-npm-production"},"publish_time":1779820724559,"_cnpm_publish_time":1779820724559},"3.1.0-pre2":{"name":"@trickfilm400/rollup-plugin-off-main-thread","version":"3.1.0-pre2","author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","_id":"@trickfilm400/rollup-plugin-off-main-thread@3.1.0-pre2","maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"homepage":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"048592af359fad95ce8817a3990aada5ffcce2b7","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-3.1.0-pre2.tgz","fileCount":6,"integrity":"sha512-Tqo6R23TxoWrh2lN7WRHN7VpVhMWZ/yemX+eWwakmiTYIo02vjJf0YS0cHxcXa4K4XdLA7X4DL0vyyxhqkOTLA==","signatures":[{"sig":"MEUCIG0UP7RtOT1ff51sEc39WspO2y0N5/Dq403oH4LAs+GJAiEA1MnDAZ+oVNp0UlmmXxwxT/NkFMnDkjY4YijlQyc+uh0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30610,"size":10196,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-3.1.0-pre2.tgz"},"main":"index.js","engines":{"node":">=12"},"gitHead":"96840a1acad0756e000abc70bcd2234f65dc7fb1","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"_npmUser":{"name":"trickfilm400","email":"trickfilm400@gmail.com"},"repository":{"url":"git+https://github.com/Trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"10.5.0","description":"Use Rollup with workers and ES6 modules today.","directories":{},"_nodeVersion":"20.12.2","dependencies":{"ejs":"^3.1.10","json5":"^2.2.3","magic-string":"^0.30.21","string.prototype.matchall":"^4.0.12"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"4.5.0","chalk":"^4.1.2","karma":"^6.4.4","mocha":"^11.7.5","rollup":"^4.53.3","prettier":"^3.7.3","karma-chai":"0.1.0","karma-mocha":"^2.0.1","karma-chrome-launcher":"3.2.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"^2.1.3","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-off-main-thread_3.1.0-pre2_1764799959548_0.8330697788008448","host":"s3://npm-registry-packages-npm-production"},"publish_time":1764799959770,"_cnpm_publish_time":1764799959770},"3.0.0-pre1":{"name":"@trickfilm400/rollup-plugin-off-main-thread","version":"3.0.0-pre1","author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","_id":"@trickfilm400/rollup-plugin-off-main-thread@3.0.0-pre1","maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"homepage":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"1ffeab04d8972063de4ad1a948b3e550e11dc745","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-3.0.0-pre1.tgz","fileCount":159,"integrity":"sha512-/67zpWDBLV+oYAEL682s1ktXL0HgqX76f6gaVGkGnVZlBbm1zd0v4Bz8MFF2GGhoX9rvfq3KSQHubFHwa6w6/Q==","signatures":[{"sig":"MEUCICtxlFaW+Grl5L+46I7ySIujYooDbnTwjjw0xNSUskm1AiEA8S7tnuq6pOtNW90PH8WUJOtRps0ywkq5tQLVbF5H9D4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":248132,"size":23319,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-3.0.0-pre1.tgz"},"main":"index.js","engines":{"node":">=12"},"gitHead":"96840a1acad0756e000abc70bcd2234f65dc7fb1","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"_npmUser":{"name":"trickfilm400","email":"trickfilm400@gmail.com"},"repository":{"url":"git+https://github.com/Trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"10.5.0","description":"Use Rollup with workers and ES6 modules today.","directories":{},"_nodeVersion":"20.12.2","dependencies":{"ejs":"^3.1.10","json5":"^2.2.3","magic-string":"^0.30.21","string.prototype.matchall":"^4.0.12"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.5.0","chalk":"^4.1.2","karma":"^6.4.4","mocha":"^11.7.5","rollup":"^4.53.3","prettier":"^3.7.3","karma-chai":"0.1.0","karma-mocha":"^2.0.1","karma-chrome-launcher":"3.2.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"^2.1.3","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-off-main-thread_3.0.0-pre1_1764692474329_0.07940217472763944","host":"s3://npm-registry-packages-npm-production"},"publish_time":1764692474510,"_cnpm_publish_time":1764692474510},"2.5.0":{"name":"@trickfilm400/rollup-plugin-off-main-thread","version":"2.5.0","author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","_id":"@trickfilm400/rollup-plugin-off-main-thread@2.5.0","maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"homepage":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"6396c5e5c30380725da0625119886677ab130475","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-2.5.0.tgz","fileCount":86,"integrity":"sha512-bOZy9peQ06rOc4/B135sqRFgwLQCH77f7x3hMqQo5Cec+1sQYrCoTuz+ZMYGkhtjLLqIa0Cvsi0oZPWewOUafQ==","signatures":[{"sig":"MEYCIQCbUIlXc9CNT5Dc7tkX72d57/zMNiHbaEzjEBfQdccT1QIhAI0AZ1PlL8H5/jpwRa2c5uMn8T+stydzTKelAmM6M5T4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@trickfilm400%2frollup-plugin-off-main-thread@2.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":91055,"size":16643,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-2.5.0.tgz"},"main":"index.js","engines":{"node":">=12"},"gitHead":"522a7f0d05c7b3de13c6b81fab863c046ea0c83e","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"_npmUser":{"name":"trickfilm400","email":"trickfilm400@gmail.com"},"repository":{"url":"git+https://github.com/Trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"10.8.2","description":"Use Rollup with workers and ES6 modules today.","directories":{},"_nodeVersion":"20.19.5","dependencies":{"ejs":"^3.1.10","json5":"^2.2.3","magic-string":"^0.30.21","string.prototype.matchall":"^4.0.12"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.5.0","chalk":"^2.4.2","karma":"4.4.1","mocha":"6.2.3","rollup":"2.79.2","prettier":"1.19.1","karma-chai":"0.1.0","karma-mocha":"1.3.0","karma-chrome-launcher":"3.2.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"1.3.0","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-off-main-thread_2.5.0_1764690566315_0.05822020624691615","host":"s3://npm-registry-packages-npm-production"},"publish_time":1764690566548,"_cnpm_publish_time":1764690566548},"2.4.3":{"name":"@trickfilm400/rollup-plugin-off-main-thread","version":"2.4.3","author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","_id":"@trickfilm400/rollup-plugin-off-main-thread@2.4.3","maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"homepage":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"e5303161123bea709eae038848f2b155570c7514","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-2.4.3.tgz","fileCount":86,"integrity":"sha512-GLrFiNxHlRIPSlP8yxHjplsGHqASih0Yt1Ouw7zIiXKhIIWnga/WklUEhe/dVX5pVHVBhLNSlZaz2rkePxDpRQ==","signatures":[{"sig":"MEUCIQD0tJiOoGN6/A2ocEp6EU45uKxmhTRtKt9kDp+NnsJPHAIgHh5yOTpLz1vo0USkiJdSmpNNl4zYgHglPF1XBfY299o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@trickfilm400%2frollup-plugin-off-main-thread@2.4.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":91054,"size":16637,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-2.4.3.tgz"},"main":"index.js","engines":{"node":">=12"},"gitHead":"b7b96d59075b2808ac0e149ec29a14e6df533a75","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"_npmUser":{"name":"trickfilm400","email":"trickfilm400@gmail.com"},"repository":{"url":"git+https://github.com/Trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"10.7.0","description":"Use Rollup with workers and ES6 modules today.","directories":{},"_nodeVersion":"20.14.0","dependencies":{"ejs":"^3.1.10","json5":"^2.2.3","magic-string":"^0.30.10","string.prototype.matchall":"^4.0.11"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.2.0","chalk":"^2.4.2","karma":"4.2.0","mocha":"6.1.4","rollup":"2.2.0","prettier":"1.18.2","karma-chai":"0.1.0","karma-mocha":"1.3.0","karma-chrome-launcher":"3.0.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"1.1.0","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-off-main-thread_2.4.3_1718860782066_0.09376479013566441","host":"s3://npm-registry-packages"},"publish_time":1718860782214,"_cnpm_publish_time":1718860782214},"2.4.0":{"name":"@trickfilm400/rollup-plugin-off-main-thread","version":"2.4.0","author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","_id":"@trickfilm400/rollup-plugin-off-main-thread@2.4.0","maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"homepage":"https://github.com/trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"3cdf5ab0d7c258368a88ea15946fddc804653e31","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-2.4.0.tgz","fileCount":86,"integrity":"sha512-R1gBMHYHp8M6eEoUpIUIzwPn8MySHjkLjxdCljPiH3ono4SfyVQEjk6JFm+kubxrGAyjdlBYzRKP85/H2PWNBA==","signatures":[{"sig":"MEQCIB5eslWB8BbQtyLqWJ3Wd9VQwu6F831Bcfj8Nik1wu9FAiA5GIO/+0PW/nqPAyc6MTE6wwfM2E9a6ZHf2vq79QFloQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":91054,"size":16636,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-2.4.0.tgz"},"main":"index.js","engines":{"node":">=12"},"gitHead":"a3651c42c1ad34472ba5f5ac2672170cfde6d0d0","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"_npmUser":{"name":"trickfilm400","email":"trickfilm400@gmail.com"},"deprecated":"Please upgrade to the latest version","repository":{"url":"git+https://github.com/trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"10.5.2","description":"Use Rollup with workers and ES6 modules today.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"ejs":"^3.1.10","json5":"^2.2.3","magic-string":"^0.30.10","string.prototype.matchall":"^4.0.11"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.2.0","chalk":"^2.4.2","karma":"4.2.0","mocha":"6.1.4","rollup":"2.2.0","prettier":"1.18.2","karma-chai":"0.1.0","karma-mocha":"1.3.0","karma-chrome-launcher":"3.0.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"1.1.0","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-off-main-thread_2.4.0_1716413495818_0.3390649260538916","host":"s3://npm-registry-packages"},"publish_time":1716413495979,"_cnpm_publish_time":1716413495979},"2.3.0":{"name":"@trickfilm400/rollup-plugin-off-main-thread","version":"2.3.0","author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","_id":"@trickfilm400/rollup-plugin-off-main-thread@2.3.0","maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"homepage":"https://github.com/trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"004de516c4bc8d7e4e3b7c1724a4d9282116f550","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-2.3.0.tgz","fileCount":86,"integrity":"sha512-Bnwn2+7YWH7j24DehB/xqN5ad57s28DTDN59vl7zNM+a24VwbHyRf6mJttb/AxFuGhb6KJBOrrKHGBWG2Ggumw==","signatures":[{"sig":"MEUCIQDyranM7SrNKVDVywmQ6L+uaH7hXL49nPfxCIATF2ZLhwIgTrZkgiJ4mfpSlo4wPRNjak/ReWCPJbKPcZNU5Rq7vNg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":91012,"size":16624,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-2.3.0.tgz"},"main":"index.js","gitHead":"202946aa2578c400fb7370985c8083bec2a07f97","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"_npmUser":{"name":"trickfilm400","email":"trickfilm400@gmail.com"},"deprecated":"Please upgrade to the latest version","repository":{"url":"git+https://github.com/trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"10.5.2","description":"Use Rollup with workers and ES6 modules today.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"ejs":"^3.1.6","json5":"^2.2.0","magic-string":"^0.25.0","string.prototype.matchall":"^4.0.6"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.2.0","chalk":"^2.4.2","karma":"4.2.0","mocha":"6.1.4","rollup":"2.2.0","prettier":"1.18.2","karma-chai":"0.1.0","karma-mocha":"1.3.0","karma-chrome-launcher":"3.0.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"1.1.0","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-off-main-thread_2.3.0_1716412543283_0.21923966672609918","host":"s3://npm-registry-packages"},"publish_time":1716412543447,"_cnpm_publish_time":1716412543447},"2.2.3-fix":{"name":"@trickfilm400/rollup-plugin-off-main-thread","version":"2.2.3-fix","author":{"name":"Surma","email":"surma@google.com"},"license":"Apache-2.0","_id":"@trickfilm400/rollup-plugin-off-main-thread@2.2.3-fix","maintainers":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"contributors":[{"name":"trickfilm400","email":"trickfilm400@gmail.com"}],"homepage":"https://github.com/trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/trickfilm400/rollup-plugin-off-main-thread/issues"},"dist":{"shasum":"87cdc3d12eb58cf6b296433675713d4490851465","tarball":"http://registry-npm.ywwl.com/@trickfilm400/rollup-plugin-off-main-thread/download/@trickfilm400/rollup-plugin-off-main-thread-2.2.3-fix.tgz","fileCount":90,"integrity":"sha512-vFj09OvQchVpv6e+XeqEDdWEY6K79n327f5T9CerefionKQSPbRIrb+cZ0IBOhVaTO7LGtz+A0nAzjaxCJN5ww==","signatures":[{"sig":"MEQCIA+4g56lZ5fFSYjyq+ZjVjtCDZZld+U/A0iVYoG3JTQKAiAv53AljJl9BqS7ySBUgsXulx2o8YSp7CFJNHYi1Mai1Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94877,"size":17506,"noattachment":false,"key":"/@trickfilm400/rollup-plugin-off-main-thread/-/@trickfilm400/rollup-plugin-off-main-thread-2.2.3-fix.tgz"},"main":"index.js","gitHead":"65f6a6a356aa8f6f11215d6222b934fe94eaaea8","scripts":{"fmt":"prettier --write 'tests/**/*.js' *.js *.md *.json","test":"node ./run_tests.js"},"_npmUser":{"name":"trickfilm400","email":"trickfilm400@gmail.com"},"deprecated":"Please upgrade to the latest version","repository":{"url":"git+https://github.com/trickfilm400/rollup-plugin-off-main-thread.git","type":"git"},"_npmVersion":"10.5.0","description":"Use Rollup with workers and ES6 modules today.","directories":{},"_nodeVersion":"20.12.2","dependencies":{"ejs":"^3.1.6","json5":"^2.2.0","magic-string":"^0.25.0","string.prototype.matchall":"^4.0.6"},"_hasShrinkwrap":false,"devDependencies":{"chai":"4.2.0","chalk":"^2.4.2","karma":"4.2.0","mocha":"6.1.4","rollup":"2.2.0","prettier":"1.18.2","karma-chai":"0.1.0","karma-mocha":"1.3.0","karma-chrome-launcher":"3.0.0","karma-safari-launcher":"1.0.0","karma-firefox-launcher":"1.1.0","karma-safaritechpreview-launcher":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-off-main-thread_2.2.3-fix_1716412200161_0.8081156174405186","host":"s3://npm-registry-packages"},"publish_time":1716412200355,"_cnpm_publish_time":1716412200355}},"readme":"# rollup-plugin-off-main-thread\n\nUse Rollup with workers and ES6 modules _today_.\n\n```\n$ npm install --save @trickfilm400/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 \"@trickfilm400/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/Trickfilm400/rollup-plugin-off-main-thread#readme","bugs":{"url":"https://github.com/Trickfilm400/rollup-plugin-off-main-thread/issues"},"license":"Apache-2.0"}