{"_id":"@emily-curry/snowpack-plugin-wasm-pack","_rev":"7-42d4d7e8b189e3739f22d4b5ac157fda","name":"@emily-curry/snowpack-plugin-wasm-pack","dist-tags":{"latest":"1.1.4"},"versions":{"1.0.0":{"name":"@emily-curry/snowpack-plugin-wasm-pack","description":"Snowpack plugin for rust using wasm-pack 🦀","version":"1.0.0","main":"plugin.js","types":"plugin.d.ts","license":"Unlicense","keywords":["snowpack","snowpack-plugin","wasm","rust","wasm-pack","wasm-bindgen"],"repository":{"type":"git","url":"git+ssh://git@github.com/emily-curry/snowpack-plugin-wasm-pack.git"},"author":{"name":"Emily Curry","email":"emily@curry.sh"},"bugs":{"url":"https://github.com/emily-curry/snowpack-plugin-wasm-pack/issues"},"homepage":"https://github.com/emily-curry/snowpack-plugin-wasm-pack","scripts":{"build":"tsc"},"prettier":{"singleQuote":true,"trailingComma":"all"},"dependencies":{"toml":"^3.0.0","execa":"^5.0.0","npm-run-path":"^4.0.1"},"devDependencies":{"@types/node":"^14.14.14","prettier":"^2.2.1","snowpack":"^2.18.5","typescript":"^4.1.3"},"gitHead":"f24dab86fa30224682f02a1083f14dde4d21ded5","_id":"@emily-curry/snowpack-plugin-wasm-pack@1.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-UbN293d87+nnJvq700LtS4+g4VFSuLXbO440o4Q7AlGLFDNIbmrU//fx0zlTfGd7F1CfFYC2Au84hFl7PnCm1Q==","shasum":"b83569e1731ba0aeb471a23a8da72b1c192d7b3b","tarball":"https://registry.npmjs.org/@emily-curry/snowpack-plugin-wasm-pack/-/snowpack-plugin-wasm-pack-1.0.0.tgz","fileCount":5,"unpackedSize":10287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfLxcCRA9TVsSAnZWagAAcmIP/2DDy16OzeO6xyIgkRMv\ns9emXR5rGuFpVdBc6LfOHWKTGyoorRWBChNgSyv5qtNluE1Dvmw/Kplu1FE4\nxcErW0X5TlS7yAQVQyXQl8cKleu1kfZvCGoaSsD0iMBMfbZXRX4+2duzCrkb\nVhQyCohQyMru4hRNxjYDJ8mGYaXbHMH/r0fQdf1fUc/2AisVHsEiw1U0+1iu\nQUmFYeF8z/sBcXkrFkkZo1+VDyfoaDStH7t7KQnXcWF+U2MJFLKRQ9DvJkIt\nXkVCYSCZd2WTKU+vYruKQ+4VUrhuF/IzrPuaANHdB94T38Rxlapj4FO82eOp\nZbTA0eyHXRgwq4IMu3ndTTg641eklhVnRVcnREF/18DtCk6IO9TWDguo65y8\nCuAnTI6dt3gefvj4lSEerY5xRdePA6fp5kSZx1WTVd+a1p+U4cJLCETVD+BH\n/oqWG2UKAoyeqU0Hbe2T8HI9Vb62RgTIaSAPaCvV5tv5BbdV2Xsat20FtXnR\nuNukbFbrHfj7/gKmuY1VJXSxbQskq1B7apyu6sgWKKF0TmpZJ2IPHylfoMzR\nae/PldJNSgz/EEEVTkSylKQXZvbn25KHUWRw26gMXisuUSFi/PRMD0m7/PdB\nzgcXJwbe3LB2MlNYwPnAUBI1dAvMWNkL6iocXYx+ptY6AdCwvONKnGPNicp1\nFnQ8\r\n=A3Mh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAnzjyWPP82M2xW2TW7YGzj5m0jXKqvDOIKgVIozsqFkAiEAzw2/brxB/navkbQJMofuBjWmWtNf7RTFKKGfHhCvezs="}]},"_npmUser":{"name":"emily-curry","email":"emily@curry.sh"},"directories":{},"maintainers":[{"name":"emily-curry","email":"emily@curry.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/snowpack-plugin-wasm-pack_1.0.0_1618787419903_0.8599759342646238"},"_hasShrinkwrap":false},"1.1.0":{"name":"@emily-curry/snowpack-plugin-wasm-pack","description":"Snowpack plugin for rust using wasm-pack 🦀","version":"1.1.0","main":"plugin.js","types":"plugin.d.ts","license":"Unlicense","keywords":["snowpack","snowpack-plugin","wasm","rust","wasm-pack","wasm-bindgen"],"repository":{"type":"git","url":"git+ssh://git@github.com/emily-curry/snowpack-plugin-wasm-pack.git"},"author":{"name":"Emily Curry","email":"emily@curry.sh"},"bugs":{"url":"https://github.com/emily-curry/snowpack-plugin-wasm-pack/issues"},"homepage":"https://github.com/emily-curry/snowpack-plugin-wasm-pack","scripts":{"build":"tsc","build:watch":"tsc --watch"},"prettier":{"singleQuote":true,"trailingComma":"all"},"dependencies":{"execa":"^5.0.0","npm-run-path":"^4.0.1","toml":"^3.0.0"},"devDependencies":{"@types/node":"^14.14.14","@types/ws":"^7.4.1","prettier":"^2.2.1","snowpack":"^3.3.3","typescript":"^4.1.3"},"gitHead":"d1d25354fc280b6f005140e57f6114a70b804acf","_id":"@emily-curry/snowpack-plugin-wasm-pack@1.1.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-yOcSsZwbEmksZDqLOiuA+fCDvmrHwZVvJuiPGB2+phT9aUx1JJ5WLOQXNBloYSRBYG3B5/vxcFqeX1FoaksWqw==","shasum":"77e25ed533615248e15d41755c0b787c58dbb09e","tarball":"https://registry.npmjs.org/@emily-curry/snowpack-plugin-wasm-pack/-/snowpack-plugin-wasm-pack-1.1.0.tgz","fileCount":5,"unpackedSize":11973,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgffBsCRA9TVsSAnZWagAAUNMQAKLI0e68teC4BIo+pk8R\nSRSkjAfUN4wdwz7C5QE52CdZySnyE737xpmlr20rLhbSvnwWkuh00vo9wVcx\neNq9oQh3HTbv8UeXSSeUYqS3OUcARBqDd+GPHX2y7o+K8syFBFKep0sJBllf\ncXdOWHOSg4PYwE4+hUWOC0Ab/H7Sa4e3mzUiVNUSAKDjNq8yfkYPuXO5Emz3\ngigA2cvKxP5hAUxaJiNpdDLALF7zgOa8eOhUcX0rXWOnCstonIDqZa2ERYMk\ndUxB0f2fBKcMIp7iY3G0/5/gD2mA5spVUEyUyz1TP/+fKGJzRyoDNfW8eFQg\nb1nesGVaTfLCA7n8sKRuLKb2Ogx7GDybU3zXMjcV0MfiMrMEwHMlY578oysO\nHX+50/RkifrEx9JsrqePcEfXoiv7SFryHHi/GH6lC24ZAi9eX7dPp42Gd3In\niJCAEr0Ys4ITvkWXyyPLvczgZDKmSO6bt5N1TArdYAKdW5Y4Z8x8hQPAf/jy\npzqWVg1gV2SxoT8hrRu//b1DPm9QGvhWktHecjQ5qSJqoAEaZy9lf8brbsug\nsrQXeC1IK/0ZRP3Wj+ZnKUVMrPVffCCAB5u47V/5c/6yrimlE7SE8UL0Ge91\nFx80KE3aOaMX1dYaj1XRJYyV3o5thML5rS+bWFYEoaqUro3mksCBtNbQiplA\ng5g7\r\n=fN8g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRDasRTr9qMm2cpYcYwHCdLwV+tfEbFjg27pou68/HigIgHdP5pRVXpgdpWBWLK0TvLbgoW+4+OZaA9MtYTJZmpFU="}]},"_npmUser":{"name":"emily-curry","email":"emily@curry.sh"},"directories":{},"maintainers":[{"name":"emily-curry","email":"emily@curry.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/snowpack-plugin-wasm-pack_1.1.0_1618866283595_0.8174181638425675"},"_hasShrinkwrap":false},"1.1.2":{"name":"@emily-curry/snowpack-plugin-wasm-pack","description":"Snowpack plugin for rust using wasm-pack 🦀","version":"1.1.2","main":"plugin.js","types":"plugin.d.ts","license":"Unlicense","keywords":["snowpack","snowpack-plugin","wasm","rust","wasm-pack","wasm-bindgen"],"repository":{"type":"git","url":"git+ssh://git@github.com/emily-curry/snowpack-plugin-wasm-pack.git"},"author":{"name":"Emily Curry","email":"emily@curry.sh"},"bugs":{"url":"https://github.com/emily-curry/snowpack-plugin-wasm-pack/issues"},"homepage":"https://github.com/emily-curry/snowpack-plugin-wasm-pack","scripts":{"build":"tsc","build:watch":"tsc --watch"},"prettier":{"singleQuote":true,"trailingComma":"all"},"dependencies":{"execa":"^5.0.0","npm-run-path":"^4.0.1","toml":"^3.0.0"},"devDependencies":{"@types/node":"^14.14.14","@types/ws":"^7.4.1","prettier":"^2.2.1","snowpack":"^3.3.3","typescript":"^4.1.3"},"gitHead":"fa1d43a9a6c720821ff1c08974b3e5f5d5b13257","_id":"@emily-curry/snowpack-plugin-wasm-pack@1.1.2","_nodeVersion":"16.6.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-AZPDSia0O5PT94O53nd4z8AIdHgh/vdKMQtR1BgqMKC3UZ4NMbqS5ukZJpGo3EdNDLVUYG534PjVAoSw6H/h4w==","shasum":"e7fb9f37ffd4fbe4af3ab3fa2bb22910e3289e99","tarball":"https://registry.npmjs.org/@emily-curry/snowpack-plugin-wasm-pack/-/snowpack-plugin-wasm-pack-1.1.2.tgz","fileCount":5,"unpackedSize":12524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGD6hCRA9TVsSAnZWagAAC4QP+wT9AEqxFvBlgeF0plEm\nsfbBoofBd9dOnfyKHcTMT9odhYvAK+A7B73565yBaV1qn2OKrrjhgwVknVVK\nXbgn4bjVNIA+G3ebEtMMSVpZ2Bl3QnVdJo31Vl8HfonHbbByte3RStxw0svn\nYet44cenTJhIOK0LYWnh60yAD4s7OB4Zk604F/NBuJfcn+aVPI66Pe05QdlG\nXnzs9t/KTUsiXFbOYTZju4zDOwVMsoCZcZICvPJU10UQnk2pbvDnoecQ+9cX\nbCP2rmh0JEvfwf5Rb7+9ojJrnifFFQyvoZk2SzIkfhrGhoEShsoVzLcBKYpR\n4zfQHHQZ0lHppAkycVGxJqng4sh/nFtpdD26wAPnM4zgr4qiLjX90MdvNj6R\nAf+YNAUbAjbXKCibfRAYvF8airXCYtT7XAU+JN6F9/HNPZpdZd5vVjrvd441\nqS5/HsNrp71prjLdXigOWJuj02O4+/ef7oRZcvGi8ydbhv9jLKuWx+gcFCfh\no/gI2bYWkAl/ChELGlEXhZ4EjEyjpcIm4GvYWJsw190/A7Tbmp3mluYrPsOB\n+M7B04gjadj7lvbkKhVrUQX5o2EUviYIYL6W7kA6GSJPH0tX/Bsxgv+yte4p\nxEjJ8WfepzhzQIsYYDnFlnnw9zYelV++wwO2ZD8hi/jmIr2Mb50ALwh0Z2Dc\ngRBo\r\n=Tr7b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCq1Axxuvu6fU+h4K+wIyov2StaDou8RmYAmB1m/uFzgAIhAOhBafGUXaow4hJXt5TMQuodiL9N6cxxMRWF19XKHhcI"}]},"_npmUser":{"name":"emily-curry","email":"emily@curry.sh"},"directories":{},"maintainers":[{"name":"emily-curry","email":"emily@curry.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/snowpack-plugin-wasm-pack_1.1.2_1628978848986_0.5883968909270723"},"_hasShrinkwrap":false},"1.1.3":{"name":"@emily-curry/snowpack-plugin-wasm-pack","description":"Snowpack plugin for rust using wasm-pack 🦀","version":"1.1.3","main":"plugin.js","types":"plugin.d.ts","license":"Unlicense","keywords":["snowpack","snowpack-plugin","wasm","rust","wasm-pack","wasm-bindgen"],"repository":{"type":"git","url":"git+ssh://git@github.com/emily-curry/snowpack-plugin-wasm-pack.git"},"author":{"name":"Emily Curry","email":"emily@curry.sh"},"bugs":{"url":"https://github.com/emily-curry/snowpack-plugin-wasm-pack/issues"},"homepage":"https://github.com/emily-curry/snowpack-plugin-wasm-pack","scripts":{"build":"tsc","build:watch":"tsc --watch"},"prettier":{"singleQuote":true,"trailingComma":"all"},"dependencies":{"execa":"^5.0.0","npm-run-path":"^4.0.1","toml":"^3.0.0"},"devDependencies":{"@types/node":"^14.14.14","@types/ws":"^7.4.1","prettier":"^2.2.1","snowpack":"^3.3.3","typescript":"^4.1.3"},"gitHead":"64cdc6b92b9afcac6b2c501a20574cb170a9d44d","_id":"@emily-curry/snowpack-plugin-wasm-pack@1.1.3","_nodeVersion":"16.6.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-PWJDbetwOAE4z8tw+N80704nIqrwCEm8bUChRsOYlf71rFePdVtN8Ywcvc+J+LJ7ZtHX5Ho8+hGQ7CZ1q71ziA==","shasum":"9689b3a14205855c320f40100a7ad44540481b3f","tarball":"https://registry.npmjs.org/@emily-curry/snowpack-plugin-wasm-pack/-/snowpack-plugin-wasm-pack-1.1.3.tgz","fileCount":5,"unpackedSize":12891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKGh7CRA9TVsSAnZWagAA+kEP/R9AEGWZWzqMy5CeObrr\nTRiU98atZD8ZX6dopdOhHHEhKW4cGjTxmdbajoIgq5i7JqZWA7ZLhG9UxIl+\n91sCzqMJspS3m/qatE6GLsdb1ZImjS7wUKGSK847e+qhWPAs6LbSOROtTPEb\nTJ+wlEwu7YY7ITnUvTsJKdVW08RJKXU4dxDAu9CZtA1NOZijf5BY8cdFuwoC\n+yig58EoQ2Ukw18/iExY5QtTwgYxra4SLOg5PRZMIf/nAO5yI9D3pELMkCWw\nCh3Oiq1osK9zTbi2Gc6F8IalT1NW4FZspYMhTkdqREmt40pjk+JP0hte5JoL\nIJW29t/wk2Fg4h+H9h+stJSvz7gLJ+ChjMQq49eJ1NpwB7Tqa1A/u2JeDsZS\nJw/lz2TsZbgSBsYLAgyuefKTFjvqPEgf3+b0jXZiVZCIfB+KqjUktxJxEwtx\nVImNjuLXicTKfNY56ol3LsWRTMvPMX70EGFltW15tfiAVGewBMdFgpJ4lnlv\nAy+8dEgdlEvAqiAMGkvPLNiqmVR0UskKeI9enHXiQ1wAb4UKbv4ZpBvIKRBg\ng9NamHuLSiU9Fdb71gSVecO9+ltxYJ/2JT36I6WQktZOAAHRsfvb4NprU0z5\nJCXK6QkdZMNCkaeP8+P9BA3WSXCQmBlQrsWih7Ung16Sn0DARtOYaw5U++oH\n2R6N\r\n=dOE3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCI9gof8Iegat1yuF8BRx9qYKnrtUgDgG+M32mIbF9IsgIgfWlu3HoBmEdlTgT9vFxXJJqsWSjZhwbMnrI+vKcLI4w="}]},"_npmUser":{"name":"emily-curry","email":"emily@curry.sh"},"directories":{},"maintainers":[{"name":"emily-curry","email":"emily@curry.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/snowpack-plugin-wasm-pack_1.1.3_1630038139607_0.7391498678068507"},"_hasShrinkwrap":false},"1.1.4":{"name":"@emily-curry/snowpack-plugin-wasm-pack","description":"Snowpack plugin for rust using wasm-pack 🦀","version":"1.1.4","main":"plugin.js","types":"plugin.d.ts","license":"Unlicense","keywords":["snowpack","snowpack-plugin","wasm","rust","wasm-pack","wasm-bindgen"],"repository":{"type":"git","url":"git+ssh://git@github.com/emily-curry/snowpack-plugin-wasm-pack.git"},"author":{"name":"Emily Curry","email":"emily@curry.sh"},"bugs":{"url":"https://github.com/emily-curry/snowpack-plugin-wasm-pack/issues"},"homepage":"https://github.com/emily-curry/snowpack-plugin-wasm-pack","scripts":{"build":"tsc","build:watch":"tsc --watch"},"prettier":{"singleQuote":true,"trailingComma":"all"},"dependencies":{"execa":"^5.0.0","npm-run-path":"^4.0.1","toml":"^3.0.0"},"devDependencies":{"@types/node":"^14.14.14","@types/ws":"^7.4.1","prettier":"^2.2.1","snowpack":"^3.3.3","typescript":"^4.1.3"},"gitHead":"64cdc6b92b9afcac6b2c501a20574cb170a9d44d","_id":"@emily-curry/snowpack-plugin-wasm-pack@1.1.4","_nodeVersion":"16.6.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-KyKP0Y6J3r9PBbANAu0vljhj8sUHMS2USXLf+X+Go0Z9O/dZhMnyCI/Um7Q9YbOJbjCA+ANTODwqiEgzKeEPmQ==","shasum":"85f476ed64a016acaf518eb0c645f811665abc6b","tarball":"https://registry.npmjs.org/@emily-curry/snowpack-plugin-wasm-pack/-/snowpack-plugin-wasm-pack-1.1.4.tgz","fileCount":5,"unpackedSize":13312,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKnsJCRA9TVsSAnZWagAAzvQQAKPfNToEAE9rmJzyfvK2\nG+YzzZZ3UjxpYwE/c5GVrrRkWNlroIKUBZa6pbAVW78h2m7o5pbnmixCPSfk\nHbE+N7WH8r6Aoby3LtvLCEdzJ8rx0NC/9pAqJFkNo0k3a3og6UWohz8sjaKo\nmzwz/s7rzYI9M1F04Vh8g42pq8jFH8EbWxR1f52Ngfr+1jwe1uKkNdGUAC4D\nSdBsNQXFbLN4OUyE9CgaDgU8yJo8tsv4zhad3mAJnzTo9ldTdV3F8Eb/7n2s\nBlabRcqt3ijf7dbvMxXUxURv8cZ7kWF7QEnbAXf/NJB5OenCyVwsHDX5P02U\ncP8Ev/v77lH9p/k8PMfigxxQ1+pcpucNoCyFpItg20tcD51nJ08rrJ46DtPu\nAcGAmwcGJFp2teOrZXr0u3nofvjdy256murkECw/PDG/FcikL6QMEj3DRQpX\nTPJ+abs+r5QsLiJpZwYhkNHhuM+yY7opoDlhBEZjzIujZHc3GX2DUzZ5CCET\nTtpRiXBmO/OK7aJyLlAFUF0yT5XUANMOw8WS2AM0X1V1H7eKfhs4nM1JDdkt\nRXsds6F4KHHpRz/7XRKhJhAmZOu4B64ET86+NqTEh5C1uhqviLGTc5kYULkg\na+VH0GvEW1x4CPk+YSHF1CHbLyyDQJYC+nkhXCWU8pgJEzrBc8CmpaUM+eEJ\ndHgL\r\n=QWIj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClYKEJBF+Jq2tMMJWvty+HCHr9u+tyoxliecZ0OY1JiQIgWmZfTddJMYRX7j1V3VID/w0vE+ZaLDhXUgTHbiS8ab0="}]},"_npmUser":{"name":"emily-curry","email":"emily@curry.sh"},"directories":{},"maintainers":[{"name":"emily-curry","email":"emily@curry.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/snowpack-plugin-wasm-pack_1.1.4_1630173961380_0.2734171613048735"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-18T23:10:19.857Z","1.0.0":"2021-04-18T23:10:20.082Z","modified":"2022-04-05T07:33:30.115Z","1.1.0":"2021-04-19T21:04:43.765Z","1.1.1":"2021-08-14T22:05:41.120Z","1.1.2":"2021-08-14T22:07:29.150Z","1.1.3":"2021-08-27T04:22:19.763Z","1.1.4":"2021-08-28T18:06:01.547Z"},"maintainers":[{"name":"emily-curry","email":"emily@curry.sh"}],"description":"Snowpack plugin for rust using wasm-pack 🦀","homepage":"https://github.com/emily-curry/snowpack-plugin-wasm-pack","keywords":["snowpack","snowpack-plugin","wasm","rust","wasm-pack","wasm-bindgen"],"repository":{"type":"git","url":"git+ssh://git@github.com/emily-curry/snowpack-plugin-wasm-pack.git"},"author":{"name":"Emily Curry","email":"emily@curry.sh"},"bugs":{"url":"https://github.com/emily-curry/snowpack-plugin-wasm-pack/issues"},"license":"Unlicense","readme":"# snowpack-plugin-wasm-pack\n\n> Snowpack plugin for rust using [`wasm-pack`](https://rustwasm.github.io/wasm-pack/book/) 🦀\n\nA forked version of [snowpack-plugin-wasm-pack](https://git.sr.ht/~george_/snowpack-plugin-wasm-pack). See [Changes](#Changes) below.\n\n## Installation\n\n```bash\nyarn add --dev @emily-curry/snowpack-plugin-wasm-pack\n```\n\nThe plugin also depends on [`wasm-pack`](https://github.com/rustwasm/wasm-pack) and [`cargo-watch`](https://github.com/passcod/cargo-watch)\n\nThese can be installed with:\n\n```bash\ncargo install wasm-pack\n```\n\n(or following [these instructions](https://rustwasm.github.io/wasm-pack/installer/))\n\n```bash\ncargo install cargo-watch\n```\n\n## Usage\n\nCreate a new RustWasm project within your project:\n\n```bash\nwasm-pack new <my-wasm-project-name>\n```\n\nAdd the plugin to your Snowpack config:\n\n**snowpack.config.js**\n\n```js\nmodule.exports = {\n  mount: {\n    src: '/',\n  },\n  plugins: [\n    [\n      '@emily-curry/snowpack-plugin-wasm-pack',\n      {\n        projectPath: './my-wasm-project-name',\n      },\n    ],\n  ],\n};\n```\n\n## Options\n\n| Name           | Description                                                          |                  Type                   | Required |      Default      |\n| :------------- | :------------------------------------------------------------------- | :-------------------------------------: | :------: | :---------------: |\n| `projectPath`  | Relative path from the root to your wasm-pack project.               |                `string`                 |   yes    |         -         |\n| `outDir`       | Directory for the compiled assets.                                   |                `string`                 |          |      `\"pkg\"`      |\n| `outName`      | Sets the prefix for output file names.                               |                `string`                 |          |     `\"index\"`     |\n| `logLevel`     | Sets the log level of `wasm-pack`.                                   |    `\"info\"` or `\"warn\"` or `\"error\"`    |          |     `\"warn\"`      |\n| `target`       | Sets the target of `wasm-pack`.                                      |                `string`                 |          |      `\"web\"`      |\n| `scope`        | Scope of your package name, eg: `@test/my-great-wasm`.               |                `string`                 |          |         -         |\n| `extraArgs`    | Any extra args you want to pass to wasm-pack. eg: `--no-typescript`. |             `Array<string>`             |          |         -         |\n| `wasmPackPath` | Path to a custom install of `wasm-pack`.                             |                `string`                 |          |         -         |\n| `watch`        | The snowpack modes that will run wasm-pack in watch mode.            | `boolean` or `SnowpackConfig['mode'][]` |          | `['development']` |\n\n## In your code:\n\n`wasm-pack` exports an `init` funtion as the default export. This **must** be called (once) before any other functions can be used.\n`snowpack-plugin-wasm-pack` will automatically configure path aliases to your project under the name of your package:\n\n**project/lib.rs**\n\n```rs\n// --- code omitted\n\n#[wasm_bindgen]\npub fn add(a: i32, b: i32) -> i32 {\n    a + b\n}\n```\n\n**src/index.ts**\n\n```ts\nimport init, { add } from 'my-wasm-project-name';\n\nconst maths = async () => {\n  await init();\n\n  console.log('Addition in rust:', add(1, 2));\n};\n\nmaths(); // should log 3 to console\n```\n\n**src/index.html**\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"UTF-8\" />\n  </head>\n  <body>\n    <h1>🦀</h1>\n    <script type=\"module\" src=\"index.js\"></script>\n  </body>\n</html>\n```\n\n## Usage with typescript\n\nYou need to manually add the alias to your tsconfig under `compilerOptions` -> `paths`.\n\n```json\n{\n  \"compilerOptions\": {\n    \"baseUrl\": \"./\",\n    \"paths\": {\n      \"my-wasm-project-name\": [\"./my-wasm-project-name/pkg\"]\n    }\n  }\n}\n```\n\n## Multiple RustWasm projects\n\nAdd the plugin multiple times for multiple projects:\n\n**snowpack.config.js**\n\n```js\nmodule.exports = {\n  // ... rest omitted\n  plugins: [\n    [\n      '@emily-curry/snowpack-plugin-wasm-pack',\n      {\n        projectPath: './my-wasm-project-name',\n      },\n    ],\n    [\n      '@emily-curry/snowpack-plugin-wasm-pack',\n      {\n        projectPath: './path/to/another/project',\n      },\n    ],\n  ],\n};\n```\n\n## Changes\n\n### 1.0.0\n\n- Added `watch` option. In modes matching the watch option, the wasm-pack build process runs alongside the snowpack build process. In non-watch modes, the wasm-pack build process executes syncronously before the main snowpack build process, ensuring the files are built in time for subsequent steps.\n\n### 1.1.0\n\n- Added `target` option, allowing the `wasm-pack --target` arg to be set.\n\n### 1.1.2\n\n- README improvements.\n\n### 1.1.3\n\n- `snowpack build` now outputs same compilation logs as `snowpack dev`.\n\n### 1.1.4\n\n- `snowpack build` now outputs args used to invoke `wasm-pack`.\n\n## Useful links\n\n[`wasm-pack`](https://rustwasm.github.io/wasm-pack/book/introduction.html)\n[`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen)\n[`snowpack`](https://www.snowpack.dev/)\n","readmeFilename":"README.md"}