{"_id":"@desmos/esbuild-worker-dedupe","_rev":"14-1adc0023dd2f1e5b4f000ad716c89e7b","name":"@desmos/esbuild-worker-dedupe","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.1":{"name":"@desmos/esbuild-worker-dedupe","version":"1.0.1","repository":{"type":"git","url":"https://github.com/desmosinc/esbuild-worker-dedupe"},"main":"build/index.js","license":"MIT","scripts":{"test":"mkdir -p test/build && rm -rf test/build/* && ./bundle.ts --main test/basic/main.ts --worker test/basic/worker.ts --outdir test/build && node test/build/main.js","prepare":"husky install","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --sourcemap=linked && cp src/types.ts build/index.d.ts","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","escope":"^3.6.0","mkdirp":"^1.0.4","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.27","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1"},"description":"```sh yarn ./bundle.ts --main test/basic/main.ts --worker test/basic/worker.ts --outdir build cat build/main.ts # notice that the code from shared.ts only appears once open index.thml # check the JS console to see that the main thread and worker code exec","_id":"@desmos/esbuild-worker-dedupe@1.0.1","dist":{"shasum":"72298bea469a673b05bf99e5f992cf6be8109571","integrity":"sha512-DIaQa2LSpxu4CP7IPaU8/9z9cKzyTk17QRc95FthOnqKIJdEY+Z+8bvMFBel8ZdrKrtwNbk9EIgV0W9uJYkwmQ==","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-1.0.1.tgz","fileCount":25,"unpackedSize":1033347,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDHFaw4lP4eZ7Km4q+QM+6iITv1h8NMj0M4jNker6biEAiArZXb/ChF/C/sQnCSds3NWSsakm5QdjJk4qrXkiqyvpw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSGEqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYcQ/8CiqIs1a3GuMoLMqfaROpSlqE1baM5RBYGJMxvdDtlJ6YpXEr\r\nhDjn11/DtvqsLiJ654qWgm3zzSeM2tgEYmBTKjTIAIUSE5MkY2o2V9iefOaB\r\nYtOibA2Z0XOl46gb2DqbWdnXF1G4SicxuX85AL7KLA6GgxeroNvJpHCTlDy8\r\n+FCfRni861a3zHt5lAfgIaBeOgqVsO/XXtSCUNSF56KQEwZzfEpDNsRobLNU\r\nj1sCOo3Q1GCzpwexeW0KyH2oYJf/TDVPs8lT8YSMJxsf9ohkJyMaICpryeld\r\nmq4ZXVvQDs5+VJCjZrqFL/k0zCflH6GaNSUGQT4kdqfoNrs5K6HUP5+ZZ8Vh\r\n0DBiFaS+tSoaZdTO2UbmnjYxRqx290H6YXyfRNZ+gHTItlRrVkGr2vuTfW7h\r\nokq2W+EATm8CYeRIdqK0qvgTC1cgSlSDLdGLlxONu2SujTVvgevfvsEawBKX\r\nwh4W+enq1deQhvYwl00onaJ4aw4HEnLdGzXSlUlD8h8IBYXmd2ks3mnq8Y82\r\nbG9u2egVUh81ZBaEbx2C23x/kpOovFthhRzCYqTxqAGSywcLXMYDrk1SU3eP\r\npSkf7rpokkNDYUx4GCQLgj4P1nxUKTD/NNmqC/E+CVDb5KtyRwg14BPHvlyS\r\noPaUTGhzOBg9V8vv9M1YJNAduUUSQOomsH8=\r\n=Rw6B\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anandthakker","email":"vestibule@anandthakker.net"},"directories":{},"maintainers":[{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_1.0.1_1648910634245_0.9616189657928877"},"_hasShrinkwrap":false},"1.0.2":{"name":"@desmos/esbuild-worker-dedupe","version":"1.0.2","repository":{"type":"git","url":"https://github.com/desmosinc/esbuild-worker-dedupe"},"main":"build/index.js","license":"MIT","scripts":{"test":"mkdir -p test/build && rm -rf test/build/* && ./bundle.ts --main test/basic/main.ts --worker test/basic/worker.ts --outdir test/build && node test/build/main.js","prepare":"husky install","watch":"esbuild                      ./src/index.js --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked --watch","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked && cp src/types.ts build/index.d.ts","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","escope":"^3.6.0","magic-string":"^0.26.1","mkdirp":"^1.0.4","source-map":"^0.7.3","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.27","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1"},"description":"```sh yarn ./bundle.ts --main test/basic/main.ts --worker test/basic/worker.ts --outdir build cat build/main.ts # notice that the code from shared.ts only appears once open index.thml # check the JS console to see that the main thread and worker code exec","_id":"@desmos/esbuild-worker-dedupe@1.0.2","dist":{"shasum":"e1b6c61b0244d49fe38f7f33e86309bdfc99db5f","integrity":"sha512-jDQTmL7aEq3mZTSgjy+3Del8FZiHKmQ4Cce5Vae1k/0ERo+ZS4s1nfj4vawLVVKkODSbsEHlblBYov7Wc3uEZA==","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-1.0.2.tgz","fileCount":26,"unpackedSize":1149754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIETIlUf6gc4GeCdAUwc7TzWxZrZHeGSlbGg3f8x//ZoeAiEAjfw/2GAbDV1PWT8KWgZylh+sA8ySvkjhGU3qfYnYy6o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTG3+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphkA/9H8AonuHJEMAMe5ygNEykklJ3lVYpM2smNgsZVo1FxtqAcPwO\r\nexdrKOm/Ts7RiqdBPt4jSC0PnCiOJ9KtYFplN0m/zx8RO0JlSelrw6VBZ7xQ\r\nmTdWUECfBPmaWPb+DoywTIMjyTCU9UqZAU6F8hAGQZEhHQPep1qL9d21h2pE\r\nE+mKkSV+3GeM2XkBuUMnzfpMnXCYdsZqGQOQMJaIj5Gh2S17rMfrT4Wkw7F2\r\nV2ETdpvZmk1tN7IbLrpnXaei2L7ZQie3QYAioaZLCABZ9bmAexaRsmswgMRf\r\n3RrdwZhBqX7SLFmxgKCpw79T9GO+zh4nh/dLiUGdU08msk7gQvw6wSWQ+XW8\r\nAbRfb/QLlGDUf/GhlxUuHdvrshOtKhf4pdi7VOLWhUJGj1iLtRW3t8rRiU95\r\nOyIqzNCSNHp2bVLXuiMs/hq6OeHYh6p0PtromNBFJJWIw5KG27Pyo2Vh/FN6\r\niU2EpjH+UeU4mQH3r3fC7tClezL7+bJ4tZYvm0h1s+xjvec+eG5iLSZL0jwc\r\nmrZhwlzEfPFQ3Wglaa6OTnVpsCyMufonmU7CzplxxVk4lqR52Q85jgrKrk9x\r\nYJc5X9FXiZJ4oBwQPGHb86u6r9RA27XI0hVjFRXtqEcVv+ChyaG/o5g4qe2H\r\nYaSA0XabqDhIJX1JQsA1X8jLe0KkMuDRaBY=\r\n=b0ef\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anandthakker","email":"vestibule@anandthakker.net"},"directories":{},"maintainers":[{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_1.0.2_1649176062281_0.14978109995744138"},"_hasShrinkwrap":false},"1.0.3":{"name":"@desmos/esbuild-worker-dedupe","version":"1.0.3","repository":{"type":"git","url":"https://github.com/desmosinc/esbuild-worker-dedupe"},"main":"build/index.js","license":"MIT","scripts":{"test":"ts-node --transpile-only test/test.ts","prepare":"husky install","watch":"esbuild ./src/index.js --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked --watch","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked && cp src/types.ts build/index.d.ts","example":"./bundle.ts --main example/main.ts --worker example/worker.ts --outfile example/bundle.js && open example/index.html","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","escope":"^3.6.0","magic-string":"^0.26.1","mkdirp":"^1.0.4","source-map":"^0.7.3","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.27","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1","puppeteer":"^19.5.2"},"description":"```sh yarn yarn example # check the JS console to see that the main thread and worker code executed successfully. cat example/bundle.ts # notice that the code from shared.ts only appears once ```","_id":"@desmos/esbuild-worker-dedupe@1.0.3","dist":{"shasum":"d69960ac85ead9ec40bb0d319896b3475e56446a","integrity":"sha512-P5Uw/K7INYvilvWA2p8wF4QcF2tjuot2jdOg/V9vUFShlbvYlD3jg1ThXPY3Fixjh2SZC4syR7qVxJ9CtDN3+A==","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-1.0.3.tgz","fileCount":33,"unpackedSize":1157334,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgv2GXQB0ku2AzvxR5k4gSBDk/YYYdkDklFaYluncrEAiAcFkuaZPB+PaqK14f61q+lCZUQTH1cY7hePlUhGVvJrQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjy1hfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoD5A/9El94V//Ml/TugDidtw3Jq68qMbsOEkKCch7dJA0SzGbKrXkl\r\n4AxTcVYIMolHtTxrbsoit6wOdhIBb73gSadzMEn9oidSREfzJyFHh1KurpLK\r\nh9gXehqLrkha7AfwZPwBIvpg7S6nAcpZV4bvTFCtqaRc+Lr+L34CFe/LWvsK\r\n+A0Huw9WFkvquAZyGWhtdtlzf1DUcMTST6xPJvTYQeh+4A1p54/yONF1jaun\r\nWAUu0i73XE9u74DN64GUlhEQt2wyu71TnksVGxMTd6TL4TX3Hn1GmEZ2nvpc\r\naeJUq6DDG6B4B5esvXYMOaXXkEwv4F7iAWgnGvMMFp+l/SJN4SdcI+wsYfNt\r\nY5Xmjq8asY9qtMzAsxgTecOFdi1VcNe/4db0M12FypYFy+QfzIIJRWh+RMbR\r\nrsr6I1qGwnkBQadI5CvuaQl0F4cBEpbqliarxSdlAVtwcPxD3dIiV5ur74bu\r\nnV4z00mDmuD1/4AQ60S5vfmVEdjaICukdccYbJvaf4g0kt0J+cOcC67BUX71\r\ndtPmy1EdAq9i04MpRWykQZ6IhVvv45BZaw2V1NXUh22SEIFNdMmasYl44w+I\r\n16q2jp3PaVq3gHZc8pJoysnyoGBMH0ZM4i1g9haNC3zmLK1rA+6G8YAA2z7S\r\nFldmoAY8daXN1nlJLOD+Ymnxpkv0DYf5/bk=\r\n=WAZM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anandthakker","email":"vestibule@anandthakker.net"},"directories":{},"maintainers":[{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_1.0.3_1674270815550_0.05967492000505481"},"_hasShrinkwrap":false},"1.0.4":{"name":"@desmos/esbuild-worker-dedupe","version":"1.0.4","repository":{"type":"git","url":"https://github.com/desmosinc/esbuild-worker-dedupe"},"main":"build/index.js","license":"MIT","scripts":{"test":"ts-node --transpile-only test/test.ts","prepare":"husky install","watch":"esbuild ./src/index.js --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked --watch","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked && cp src/types.ts build/index.d.ts","example":"./bundle.ts --main example/main.ts --worker example/worker.ts --outfile example/bundle.js && open example/index.html","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","acorn-walk":"^8.2.0","escope":"^3.6.0","magic-string":"^0.26.1","mkdirp":"^1.0.4","source-map":"^0.7.3","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.27","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1","puppeteer":"^19.5.2"},"description":"```sh yarn yarn example # check the JS console to see that the main thread and worker code executed successfully. cat example/bundle.ts # notice that the code from shared.ts only appears once ```","_id":"@desmos/esbuild-worker-dedupe@1.0.4","dist":{"shasum":"b118007fe256c9da450f1432aba83fea98dc940a","integrity":"sha512-FYjEL4zDdapoKAyFt9JsWSP4W9zzWV++vYjcfFVA7V3dHW4tL0Rxnzp0SbrIUDRvYNM7nuAWO44l2LfNnK1BWQ==","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-1.0.4.tgz","fileCount":38,"unpackedSize":1192881,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBxjRk8pezzimlqjjfKifBdOGow7yPdtSKIXdzUeJ0KgIgeUGZI1yux12axk4Bd7G0Jv+dnIaUoE9H0PShqrsuIRM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAqbcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKIQ/+MzlZKAl31JqmXLEQ30lC4RQX7VAqDIskdD/BWIdofsFgFxF3\r\nHy4WuS9s88NuShh2hAz3aFim7jpyfDP85qSATDLzjuL4RhyRZ9ovHQKEYg/U\r\nOgDSXMuqpnGksiySVrRHyX8qgkDz4bvVpqZVBfFEkyteVmva+72lRz9a+neQ\r\n23bdMKUQcRe0npmd/3QNc4O80foJPC7rp9qSh0VmW/90p8V7dNTrFfbJVG7m\r\n0PysTF/BmsFdWFgfICtq8f5Bpxw05hs4HU3ipiHCsM6tdg/CCJsFUzERJpt1\r\nDaUevKboC1moNgYwjy6zhRF9THz7FLeThD6ulppy0exAponGEkUgX8KiBAh+\r\nhvBXlm/TSgesMVIxFY1huodr72TPihAl10Yx7ynZof4OvqfFbLa3eA9RuwrX\r\nWturfMr7bHMlwvsCBFBhk0kdUectwyGpGsbfg8c3xL+Fk+Yl+ibtM7mzD9e4\r\nIB04moB643Wn6ThpeIeAZlUy6ZdwWWxx35hWfVX70GluUYVwB9cx2e9HsHXO\r\nbKyXkfKFHOMEA+71rIjaoGTCChIv/PlzWzDZFLY9rhaF99wXkZeRCecPw8YE\r\nnhYD2o69a62y9zIsFSLUMd4bZdlma58tg1Zyn5EqUx6SYZVZvzRLre1V6Ns0\r\nXQOJ+KZlg5gSpxcAp4db6B1Z+QQhidWpUoA=\r\n=IaRU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anandthakker","email":"vestibule@anandthakker.net"},"directories":{},"maintainers":[{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_1.0.4_1677895388309_0.2421328302405763"},"_hasShrinkwrap":false},"1.0.5":{"name":"@desmos/esbuild-worker-dedupe","version":"1.0.5","repository":{"type":"git","url":"https://github.com/desmosinc/esbuild-worker-dedupe"},"main":"build/index.js","license":"MIT","scripts":{"test":"ts-node --transpile-only test/test.ts","prepare":"husky install","watch":"esbuild ./src/index.js --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked --watch","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked && cp src/types.ts build/index.d.ts","example":"./bundle.ts --main example/main.ts --worker example/worker.ts --outfile example/bundle.js && open example/index.html","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","acorn-walk":"^8.2.0","escope":"^3.6.0","magic-string":"^0.26.1","mkdirp":"^1.0.4","source-map":"^0.7.3","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.27","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1","puppeteer":"^19.5.2"},"description":"```sh yarn yarn example # check the JS console to see that the main thread and worker code executed successfully. cat example/bundle.ts # notice that the code from shared.ts only appears once ```","_id":"@desmos/esbuild-worker-dedupe@1.0.5","dist":{"shasum":"7d67d10724fd6eade4618c1dd97780904590c44b","integrity":"sha512-e7GdSkVS+0cwzNtjAG8WznfS8cJ8Nweox1S4eTywYqOLJTYrGLL8OWwtx9ud/24nrul032mx1V0nKYGyw3vv/Q==","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-1.0.5.tgz","fileCount":43,"unpackedSize":1197493,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtvx06hY2d3Uv+jkf0ylwjswzP+siRfeosWLCN435JdQIgdvA1yYO5YaMRcZrujHSaEiPIkAzHABLijSCmetWA88E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAsmQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqx0w//QxYK0QA3nn6RCEG+6OvGvYvx2fVPOvJK5ZVzMZM5slayurs9\r\n1rmEo9hX4ZWffBTHeaOy4b1OB19Iys/lo3vvTIzzLRbe22Wkyfo6zR9VSYNl\r\nwFF9d1pyocIKHuiy5BQ3/l/GzKzUS5dt0GkCrrb5e0sYORQThCquGL0dGQ/o\r\nQ+/PaP0SRuvP4ArM0Cp8mi2wt/brJz/iJwuOerDZDfoEzLT/5BgNGQAygN/k\r\nXSL92rVY9VAzN5Fv8yKcjDq6wr06hYyBxWG++BGm641Z2EjJ10CQfPPfoC4Q\r\n7luIMAOcw4jlkzqTSZW/cHqft+F4cipk45FkzXBfq5rnvJc1KSqrNKpwyyHV\r\niyxPVHYIIrr+yH2FzoDdci4KKnHt/GqVFhBUF88jQ+/utEa//R2WoRuRidxq\r\n4d9wxh1CPemT+5bH4RyNG21ENaL+kPJGAOsA+ZTZv/wpKOKt5UzFijnUvdxd\r\nxlrBhFELKBRlo7UAmo+7aAQMI31iJedQxjV+9wFKJHnvQMGOT51yPZsswztQ\r\nnhgtD2IxF7OY/KKjPXRfg4jFI3AsLaDNtPNddPlabdo8l8HqYIeEHO/LQAaS\r\n9bchaW0PxHtuN4lpZoHrl5jCsG/3uncfeUrcRk9RI9wvA8rnc1pJ253BNhti\r\nRck6qSyJ5UhLS06uRkfqf+bIJuz7r4L30BY=\r\n=17Pt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anandthakker","email":"vestibule@anandthakker.net"},"directories":{},"maintainers":[{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_1.0.5_1677904272418_0.2859449714484561"},"_hasShrinkwrap":false},"1.0.6":{"name":"@desmos/esbuild-worker-dedupe","version":"1.0.6","repository":{"type":"git","url":"https://github.com/desmosinc/esbuild-worker-dedupe"},"main":"build/index.js","license":"MIT","scripts":{"test":"ts-node --transpile-only test/test.ts","prepare":"husky install","watch":"esbuild ./src/index.js --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked --watch","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked && cp src/types.ts build/index.d.ts","example":"./bundle.ts --main example/main.ts --worker example/worker.ts --outfile example/bundle.js && open example/index.html","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","acorn-walk":"^8.2.0","escope":"^3.6.0","magic-string":"^0.26.1","mkdirp":"^1.0.4","source-map":"^0.7.3","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.27","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1","puppeteer":"^19.5.2"},"description":"```sh yarn yarn example # check the JS console to see that the main thread and worker code executed successfully. cat example/bundle.ts # notice that the code from shared.ts only appears once ```","_id":"@desmos/esbuild-worker-dedupe@1.0.6","dist":{"shasum":"66d1e0fc372f871b53d2a6411153a6decd9ceac5","integrity":"sha512-se/9EejGmpE03zP5uPYT8ZH1rYT7gqahGqsrCFhlmTC8kGEmEL6Zt4rmBTp0n4uCZJy/gr5910RHwtkqmwmveQ==","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-1.0.6.tgz","fileCount":48,"unpackedSize":1200038,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIANni6OL2NeTJ5yhzskucTWY3piZZ0P6BnvJZzObmlQ1AiEA+HQtqudiB00j5LZwdzuEztsb7k831x/tGpArtZB3CX0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBkmZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1mQ/7BFJdxl4ckA3yVjWxaN0R8/fIvt11W/fkmmBRg3DhTuX7l+px\r\nNSLCtSwMaqcX6jHvpM3T4Ho/MCtWLnlMgcl10BAKxtGqTs+M9hyeNXnBKfmh\r\nkZ6ZzpQ1RgUNP3YIzGnDmvwMVcu4HpSKLnQhI93A59A8JfSJQWxefH11wxMq\r\n43UCXUf0c47raY8Ayl9Thic1PbKSDE2lD+eajf0SRCPRkEDk2HceyYzlvBv+\r\nEp/0LoL8AGKzJsC9uoXv8MfUGuHPYsjZRecpIsO2OuyhwLusEGQP4CAPkUg6\r\nkkI3xPT95td8FQRE7RrgZPROxEMqzPymOEvlnAJz0MKoceHvdbWI2KprXRfn\r\nDiJj8fgYv7PQPi7QpzQV0MKTqjW1f0WUumiJ1xzG14dM4Wpe2QQm7OqicgaU\r\nX5S4ofYOmnQqZikrVKR+iaJk4cVuM/KSl+g2ZUcNASo3Dc6cR4kKSe17P/jl\r\n86bVLfRuKvcOEPbbSb/JBol5LFyoWD1wEN0FKbpL5NajUEcHvbsjvzyXOJXo\r\nvrGRh6srxd9dLFTTkBjWZynnHBUHmlFSNZkGJW1LtXgIex6cP8fNatQfW/hs\r\nuqEyr5/3cOTlvjsLRhTmplpR8Lin5kzKYsgTKjw2ixPEQog96k/gj+FEBc+N\r\npvowyu43Y5SNZM5KlcJ5cQiNXp/G1U7x3js=\r\n=gbSW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anandthakker","email":"vestibule@anandthakker.net"},"directories":{},"maintainers":[{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_1.0.6_1678133657431_0.44155328373467917"},"_hasShrinkwrap":false},"1.0.7":{"name":"@desmos/esbuild-worker-dedupe","version":"1.0.7","repository":{"type":"git","url":"https://github.com/desmosinc/esbuild-worker-dedupe"},"main":"build/index.js","license":"MIT","scripts":{"test":"ts-node --transpile-only test/test.ts","prepare":"husky install","watch":"esbuild ./src/index.js --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked --watch","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked && cp src/types.ts build/index.d.ts","example":"./bundle.ts --main example/main.ts --worker example/worker.ts --outfile example/bundle.js && open example/index.html","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","acorn-walk":"^8.2.0","escope":"^3.6.0","magic-string":"^0.26.1","mkdirp":"^1.0.4","source-map":"^0.7.3","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.14.27","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1","puppeteer":"^19.5.2"},"description":"```sh yarn yarn example # check the JS console to see that the main thread and worker code executed successfully. cat example/bundle.ts # notice that the code from shared.ts only appears once ```","_id":"@desmos/esbuild-worker-dedupe@1.0.7","dist":{"shasum":"29e55c1b4c2489121ccccb88de4dd5028e91ae88","integrity":"sha512-j6qLfRpKogusDgk5Dgs0mBhrZ4qoXxIWAlcNKk6cu5ABPU5Grs19rqIyQv7ZbvTkGmczE6YAZMxmilgw5adCFA==","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-1.0.7.tgz","fileCount":48,"unpackedSize":1203078,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq84c96j9gNvnZ+OKDlJSO5UCTNahKqau7QE5SDzQ8EAIhAObcJDxWku7aFTtRa8SRTbN+Bm2PgKdiU7wRin+FO3O2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC5JpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLRA//cEwuuHPtktVQL6S1Qj6KuAHEwvyYU/wZ+nGC0pYazZrL5t/H\r\nbc2ajpYI8jY5n2c9oHu1c5ngLy5pZufD1hxfGdMvWwYEBGkzrHWt/F/fqfNG\r\npNeVImWgOoIIDqfIfpMHyPkfqdN3GrdQkPkM9iaJMxs3zuhknxm/CWhBita7\r\nQQfxpfRv0oWtDp/zsYs1G9u0RPQrV52j6s9o1+iISwpKDg7gFz4ltPmBOdgO\r\nZzkeE7Pi80cS33osbEVbUeb+myVheYaF73GG1+nX7TM9czdq8LkpYdNdchlJ\r\niVnmZedzKOxaWioFm7fJ+nvIKq3Wd4ev0qlGlUgHyNl01atepXSv9ISp37Zu\r\nTwpBr1PpVGuPIw5QU6xvbidc6Nc2E4mJ7Xfpj0B9VwC11qE+c367dwURTHIl\r\n60/BisxpNluO64JiJMP/1xGZgIBR7PrtF0J1swhPO4vdlb7xWJHCxq8Ep950\r\nQMQnHO5NzvmRQxfAL0lZZal2U5HVJrx0Xx/Vd4X7Qp4p/rDZ8EX6mO3atDM4\r\nPDGxHx3H8x7eHqFAc+X5ISsJ2Zpgmo/IM9vKYqXEZdreWmqo5m8PgldMt9KA\r\n/CeVGGoh66PT/MKUGvgJFeeQgfRc0mVW82vcqrSTtwp1QrlN9lxiPGXGWwQI\r\nhWSoctsl/2BeREkP+kbzRmz53fMSvuXBBfw=\r\n=rK1t\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anandthakker","email":"vestibule@anandthakker.net"},"directories":{},"maintainers":[{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_1.0.7_1678479977537_0.22466670192952054"},"_hasShrinkwrap":false},"2.0.0":{"name":"@desmos/esbuild-worker-dedupe","version":"2.0.0","repository":{"type":"git","url":"https://github.com/desmosinc/esbuild-worker-dedupe"},"main":"build/index.js","license":"MIT","scripts":{"test":"ts-node --transpile-only test/test.ts","prepare":"husky install","watch":"esbuild ./src/index.js --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked --watch","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --external:source-map --main-fields=main --sourcemap=linked && cp src/types.ts build/index.d.ts","example":"./bundle.ts --main example/main.ts --worker example/worker.ts --outfile example/bundle.js && open example/index.html","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","acorn-walk":"^8.2.0","escope":"^3.6.0","magic-string":"^0.26.1","mkdirp":"^1.0.4","source-map":"^0.7.3","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"peerDependencies":{"esbuild":"^0.17.19"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.17.19","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1","puppeteer":"^19.5.2"},"description":"```sh yarn yarn example # check the JS console to see that the main thread and worker code executed successfully. cat example/bundle.ts # notice that the code from shared.ts only appears once ```","_id":"@desmos/esbuild-worker-dedupe@2.0.0","dist":{"shasum":"bbd28d0924e4bec68ec489e66d11ed635c117fbc","integrity":"sha512-fSJu39Sw7DnwOyNajqX29nZDTzjlkCUmeciidvYIKoMiZXktsy4WdSCls7X9TtrqdGJTj7rJpE853QMwtzjUQw==","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-2.0.0.tgz","fileCount":48,"unpackedSize":1247760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELeikUbt+pt6a/fk06qO5tvOuxbXmOdqRRR485QOQfBAiEAozaaik2omTyZpGKskW1EyuMKpTs92zfZf7FiIPldmwI="}]},"_npmUser":{"name":"anandthakker","email":"vestibule@anandthakker.net"},"directories":{},"maintainers":[{"name":"nschulzke-amplify","email":"nschulzke@amplify.com"},{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_2.0.0_1685473025420_0.17766769817206973"},"_hasShrinkwrap":false},"2.0.1":{"name":"@desmos/esbuild-worker-dedupe","version":"2.0.1","repository":{"type":"git","url":"https://github.com/desmosinc/esbuild-worker-dedupe"},"main":"build/index.js","license":"MIT","scripts":{"test":"ts-node --transpile-only test/test.ts","prepare":"husky install","watch":"esbuild ./src/index.js --outdir=build --bundle --platform=node --target=node16 --external:source-map --main-fields=main --sourcemap=linked --watch","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --target=node16 --external:source-map --main-fields=main --sourcemap=linked && cp src/types.ts build/index.d.ts","example":"./bundle.ts --main example/main.ts --worker example/worker.ts --outfile example/bundle.js && open example/index.html","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","acorn-walk":"^8.2.0","escope":"^3.6.0","magic-string":"^0.26.1","mkdirp":"^1.0.4","source-map":"^0.7.3","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"peerDependencies":{"esbuild":"^0.17.19"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.17.19","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1","puppeteer":"^19.5.2"},"description":"```sh yarn yarn example # check the JS console to see that the main thread and worker code executed successfully. cat example/bundle.ts # notice that the code from shared.ts only appears once ```","_id":"@desmos/esbuild-worker-dedupe@2.0.1","dist":{"shasum":"2bf1603aa30dd45d3d5135ffe0a987e8160ae499","integrity":"sha512-KMypak2y0r7hXKaTs+2v8gyPfveDM3A+E/oGnV3QHVppOZZkzQDr2983o9fpMk2NRrnUKRwUwBUASzuV4K97PA==","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-2.0.1.tgz","fileCount":48,"unpackedSize":1246165,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhfA7SuyZhEvfNqNBaJQ7N007lD1uXui68Drh/s4iTdAiAr9Ij+YbXApbKCoUT8TCygSb9gC5Og0yXUVVr2ZgwtNw=="}]},"_npmUser":{"name":"anandthakker","email":"vestibule@anandthakker.net"},"directories":{},"maintainers":[{"name":"nschulzke-amplify","email":"nschulzke@amplify.com"},{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_2.0.1_1685480367343_0.33428081030056656"},"_hasShrinkwrap":false},"2.0.2":{"name":"@desmos/esbuild-worker-dedupe","version":"2.0.2","repository":{"type":"git","url":"https://github.com/desmosinc/esbuild-worker-dedupe"},"main":"build/index.js","license":"MIT","scripts":{"test":"ts-node --transpile-only test/test.ts","prepare":"husky install","watch":"esbuild ./src/index.js --outdir=build --bundle --platform=node --target=node16 --external:source-map --main-fields=main --sourcemap=linked --watch","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --target=node16 --external:source-map --main-fields=main --sourcemap=linked && cp src/types.ts build/index.d.ts","example":"./bundle.ts --main example/main.ts --worker example/worker.ts --outfile example/bundle.js && open example/index.html","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","acorn-walk":"^8.2.0","escope":"^3.6.0","magic-string":"^0.26.1","mkdirp":"^1.0.4","source-map":"^0.7.3","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"peerDependencies":{"esbuild":"^0.17.19"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.17.19","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1","puppeteer":"^19.5.2"},"description":"```sh yarn yarn example # check the JS console to see that the main thread and worker code executed successfully. cat example/bundle.ts # notice that the code from shared.ts only appears once ```","_id":"@desmos/esbuild-worker-dedupe@2.0.2","dist":{"shasum":"884983fd45915a01e2bda2179a2ad38f0ba7e936","integrity":"sha512-KDu+d3OtVQS6zAvhHDedNpPFu0pkVEOQpGIbX//xIwOduSsD1XIxshPM+OpA7NhOQmuGDgdCV9JPzdE0gljQLQ==","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-2.0.2.tgz","fileCount":48,"unpackedSize":1247571,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHUrkQYicBGMAWhVFH4oYywTDweovM7u+7rQO4KTlM6oAiEAukOYWLt6ezK+8hCqDjAg0q95WEseRcuzuUR8q2JxeAs="}]},"_npmUser":{"name":"anandthakker","email":"vestibule@anandthakker.net"},"directories":{},"maintainers":[{"name":"nschulzke-amplify","email":"nschulzke@amplify.com"},{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_2.0.2_1685497840879_0.8469913881716371"},"_hasShrinkwrap":false},"3.0.0":{"name":"@desmos/esbuild-worker-dedupe","version":"3.0.0","repository":{"type":"git","url":"git+https://github.com/desmosinc/esbuild-worker-dedupe.git"},"main":"build/index.js","license":"MIT","scripts":{"test":"ts-node --transpile-only test/test.ts","prepare":"husky install","watch":"esbuild ./src/index.js --outdir=build --bundle --platform=node --target=node16 --external:source-map --main-fields=main --sourcemap=linked --watch","build-plugin":"rm -rf build && esbuild src/index.ts --outdir=build --bundle --platform=node --target=node16 --external:source-map --main-fields=main --sourcemap=linked && cp src/types.ts build/index.d.ts","example":"./bundle.ts --main example/main.ts --worker example/worker.ts --outfile example/bundle.js && open example/index.html","prepublishOnly":"yarn test && yarn build-plugin"},"dependencies":{"acorn":"^8.7.0","acorn-walk":"^8.2.0","escope":"^3.6.0","magic-string":"^0.26.1","mkdirp":"^1.0.4","source-map":"^0.7.3","ts-node":"^10.7.0","typescript":"^4.6.2","yargs":"^17.4.0"},"peerDependencies":{"esbuild":"^0.19.10"},"devDependencies":{"@types/estree":"^0.0.51","@types/mkdirp":"^1.0.2","@types/node":"^17.0.23","@types/yargs":"^17.0.10","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","esbuild":"^0.19.10","eslint":"^8.12.0","husky":">=6","lint-staged":">=10","prettier":"^2.6.1","puppeteer":"^19.5.2"},"_id":"@desmos/esbuild-worker-dedupe@3.0.0","gitHead":"7adb6ee6365d51218f2f21ad790f28e715f935f7","types":"./build/index.d.ts","description":"Proof of concept for inlining web worker code with esbuild with shared dependencies deduplicated.","bugs":{"url":"https://github.com/desmosinc/esbuild-worker-dedupe/issues"},"homepage":"https://github.com/desmosinc/esbuild-worker-dedupe#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-Jmky+vzXHaaHXdqwFfUqM6cB7YC/6kY7bvvlR49Me6VvTbj2w4sZBPXbOXNmmlLkD4Ts22gCxhNS39xiu5er6w==","shasum":"b4ef455b8ffe48ee0483ecdc6d35e45c18374d0d","tarball":"https://registry.npmjs.org/@desmos/esbuild-worker-dedupe/-/esbuild-worker-dedupe-3.0.0.tgz","fileCount":39,"unpackedSize":1249866,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRrRyLrzf4ZmxptsBgLGld2semdruswo1VvIj5wNvATAiAB/VQn/ma3I/SmoWtb3VHm9mw1QxOIAW8c748Xh1oM/g=="}]},"_npmUser":{"name":"slbls","email":"spencer@berenson.dev"},"directories":{},"maintainers":[{"name":"slbls","email":"spencer@berenson.dev"},{"name":"chrisdesmos","email":"chris@desmos.com"},{"name":"timstallmann","email":"tim@desmos.com"},{"name":"nschulzke-amplify","email":"nschulzke@amplify.com"},{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-worker-dedupe_3.0.0_1715017988834_0.3375178527117597"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-02T14:43:54.175Z","1.0.1":"2022-04-02T14:43:54.443Z","modified":"2024-05-06T17:53:09.395Z","1.0.2":"2022-04-05T16:27:42.460Z","1.0.3":"2023-01-21T03:13:35.809Z","1.0.4":"2023-03-04T02:03:08.548Z","1.0.5":"2023-03-04T04:31:12.584Z","1.0.6":"2023-03-06T20:14:17.702Z","1.0.7":"2023-03-10T20:26:17.818Z","2.0.0":"2023-05-30T18:57:05.681Z","2.0.1":"2023-05-30T20:59:27.636Z","2.0.2":"2023-05-31T01:50:41.110Z","3.0.0":"2024-05-06T17:53:09.123Z"},"maintainers":[{"name":"slbls","email":"spencer@berenson.dev"},{"name":"chrisdesmos","email":"chris@desmos.com"},{"name":"timstallmann","email":"tim@desmos.com"},{"name":"nschulzke-amplify","email":"nschulzke@amplify.com"},{"name":"anandthakker","email":"vestibule@anandthakker.net"}],"description":"Proof of concept for inlining web worker code with esbuild with shared dependencies deduplicated.","repository":{"type":"git","url":"git+https://github.com/desmosinc/esbuild-worker-dedupe.git"},"license":"MIT","readme":"Proof of concept for inlining web worker code with esbuild with shared dependencies deduplicated.\n\n## Try it\n\n```sh\nyarn\nyarn example # check the JS console to see that the main thread and worker code executed successfully.\ncat example/bundle.ts # notice that the code from shared.ts only appears once\n```\n\n## How it works\n\nThe idea is to use a two-step process:\n\nFirst, take advantage of code splitting to factor out the common dependencies between the main entrypoint and the worker,\nwhich produces three \"chunks\", that look sort of like:\n\n**main.js**\n\n```js\nimport { SharedThing } from \"./shared.js\";\n// src/main.ts\nimport { createWorker } from \"inlined-worker!./worker\"; // NOTE: we intentionally skipped this import in the first step.\n// We'll come back to it in the next step.\nconsole.log(\"main\", new SharedThing().id);\ncreateWorker();\n```\n\n**worker.js**\n\n```js\nimport { SharedThing } from \"./shared.js\";\n// src/worker.ts\nfunction doSomething() {\n  console.log(\"worker\", new SharedThing().id);\n}\ndoSomething();\n```\n\n**shared.js**\n\n```js\n// src/shared.ts\nvar SharedThing = class {\n  constructor() {\n    this.id = Math.random();\n  }\n};\nexport { SharedThing };\n```\n\nWe don't write these chunks to disk -- our plugin configures ESBuild to generate them in memory.\n\nNext, we manually combine these three chunks into a single one as follows:\n\n1. From `shared.js`, emit code that:\n   a. wraps the original source in a function, `__sharedModuleFn`.\n   b. evaluates that function immediately to provide the _actual_ exports from `shared.js` (e.g. `SharedThing` in the example above), storing them as `__sharedModuleExports`\n2. From `worker.js`, emit code that creates a `__workerFn` function that accepts an object holding the exports from the shared module, and then code that uses Function.toString() to assemble both of these, at runtime, into a string containing the full source of the worker. This string is used to create an object URL with which to instantiate the worker.\n","readmeFilename":"README.md","homepage":"https://github.com/desmosinc/esbuild-worker-dedupe#readme","bugs":{"url":"https://github.com/desmosinc/esbuild-worker-dedupe/issues"}}