{"_id":"vite-plugin-preload","_rev":"28-93293eae34a2a29e08486e69dc280f38","name":"vite-plugin-preload","dist-tags":{"latest":"0.7.0"},"versions":{"0.1.6":{"name":"vite-plugin-preload","version":"0.1.6","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.1.6","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"966ba5a6c226f0f607543a7919cb8e7d65afd1d8","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.1.6.tgz","fileCount":11,"integrity":"sha512-Mh7H+aBUejJ96hdrBXlrVKICCpSktfaBxTTzWYYEFw5oQ5N3LUOAro9NMoDyhMRfiVuKc4xj+ljjVuVBYtwQ8Q==","signatures":[{"sig":"MEUCIQCUKTlDmzSvmlcu2ZIY4i0kkfRZOw2vKWErMCOL6QHyUQIgSQQYrW9rfRZKz6u0BvS0ZYGfo143M9sMiazZ2N1AhGU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyH3XCRA9TVsSAnZWagAALmwP/1UiCaG3A3eZFgLBqTbP\nSuQMbTQ0q7yX4/EtwcI6+UH6kksszlTkvNVlvU2T/oGSdRqk9X7tFMHBx81p\nDbshOlngT3byd7UbIutowNLuq9kkvP44ogoSpRIag/sweb2u79xiBy0176XR\nLtBmHM2IZFSEAc88ApNF61NocIJ9bnxLV0oCwyqu4JGISKriBDiVpxxq1x+f\nXajpqHltZoijFIPFq85zUP7GS7jUWm4PjioofXiKHEAt8MW9+QNkZ3pFLE3B\nZGNQRkFyAdRa0rLkrGf66ZdGY1SOa4yQrN+hgJAD8+sMt/xgbuABRS+m4DNG\niuvLJh9E5/IHPpg/oOOfAOyroaYsD8D9pu+7KwU6JBM5MHi2gLwf29JIpqPN\nqsV7JOjyfMWRlS4XAN4JSmBJKPlN5N1Z2mJSe1g5y5wUGLrp5FaiU4vbFiXn\nM9wzCzVNUgSAVL7i9ppLm7hXkSVVIWKYy05fgM7MiksuKXRBr3hwvR5FhHgM\nSBo0tuT9kMRGwp+KgthB9D/BcFGMzcrqghiEn2CoMtrSdXoCgpO5azosm8QA\nNEvIzlNIeegYHBXHHpI5NEFnzUlfa36d38TAQcFBSAtbmALGH7H/VenvD926\nyRJ4rTg5hYxIL75aA406vfK4SZtdTjcRZSNMpLUKdyqJJOOAuZPpT83CoZEk\nYzr4\r\n=kYU2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.mjs","exports":{"import":"./dist/index.mjs","require":"./dist/index.js"},"scripts":{"test":"jest","build":"tsup","prepack":"yarn build","prepublish":"yarn test"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"https://github.com/jarlef/vite-plugin-preload","type":"git"},"description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"dependencies":{"ejs":"^3.1.6","jsdom":"^19.0.0","canvas":"^2.8.0","prettier":"^2.5.1","@types/jest":"^27.0.3","@rollup/pluginutils":"^4.1.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.5","tsup":"^5.11.7","vite":"^2.7.6","@swc/core":"^1.2.123","@swc/jest":"^0.2.15","@types/ejs":"^3.1.0","typescript":"^4.5.4","@types/node":"^17.0.4","@types/jsdom":"^16.2.14","@types/prettier":"^2.4.2","regenerator-runtime":"^0.13.9"},"peerDependencies":{"vite":">=2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.1.6_1640529367755_0.010071148504307015","host":"s3://npm-registry-packages"}},"0.1.7":{"name":"vite-plugin-preload","version":"0.1.7","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.1.7","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"d30fbfc3717d0855343d775eb015fc1b825b143c","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.1.7.tgz","fileCount":11,"integrity":"sha512-n3v78P72Q+KgEWRBWzZnwHyG/JDbkfV66h/fgsQgzJk+6ozVaPM9/CsN/GC6ae8/ehRXDOhxvkqbbXm7eFYXxg==","signatures":[{"sig":"MEQCIBa7Sgn3ZJJNojRWF6BpSL+XJVoHe9jWwwF0ngsk5oQAAiB41TtbI99BcJRCPxLT8cztepFQsTGrz7Qv/qSaBkUs5g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyNaKCRA9TVsSAnZWagAAGUcP/1ztVOQmvMo8fhwtu3f/\nwYYfbUGj76tRCfdvoBjjNRo9gNQKjCe5/FtWQf35T3N96AvgKGFIi9VT21o9\neWf9zdx/wrvdAQB8WHyrj+SivskSSfffz5AG31A1TRrpjINxwUPjhGlYXoh3\nA2pr1bG+OCuQEW0dNYrlBPVNFZNaY4x15emNM62BZl+JlZ4E3Br+hpejQ7mu\n62+5kbQfSyBITfnVK5SB/nwv1GDHgpEbUw98wTGs4s2iEzU4DltCW7Vzzxi5\nkBN3rBqLuzum9qmD4B+wVFbpqOKL/5TXjKOt0K1gmiEAGe+bX5T16TeU+lcW\nFdeIAFvvkAsaZnlwuUl05y7u+hDkNoNZgrGfCkO3xpzVhFW8sbuTWt7LiXBU\nC2n3CXZ36D3RkHN93qQ7JLfcyqdqZTcNiY605sfkTfV58BasfBLD/7WCWwzL\n31wh9BCDGOMujD0DuEEmjgWBcVJUoPwk+rwc9v5EWo/EFGFrbw8yWr6iDDoU\nMkpOKHBt6laD0D+YTMWlB0WQS73bl88jR0GpWQdqr2GjfJOBpe+9Gf2K+cBR\nlLyYkwfFMoSA+qs91mKPA2IPzvetT5t5Md2WuK/F4bnBtVIPdKXtPIeJjuSR\n51IjpucSpwXiR4FPbxdeZgmZ5X0uuWjInoiE9a6Sl4uv5UgY7rEzffrWm6gf\n1IJr\r\n=bY+x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.mjs","exports":{"import":"./dist/index.mjs","require":"./dist/index.js"},"scripts":{"test":"jest","build":"tsup","clean":"rimraf dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"https://github.com/jarlef/vite-plugin-preload","type":"git"},"description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"dependencies":{"jsdom":"^19.0.0","canvas":"^2.8.0","prettier":"^2.5.1","@rollup/pluginutils":"^4.1.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.5","tsup":"^5.11.9","vite":"^2.7.7","rimraf":"^3.0.2","@swc/core":"^1.2.123","@swc/jest":"^0.2.15","typescript":"^4.5.4","@types/jest":"^27.0.3","@types/node":"^17.0.5","@types/jsdom":"^16.2.14","@types/prettier":"^2.4.2","regenerator-runtime":"^0.13.9"},"peerDependencies":{"vite":">=2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.1.7_1640552074644_0.11552867321901417","host":"s3://npm-registry-packages"}},"0.1.8":{"name":"vite-plugin-preload","version":"0.1.8","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.1.8","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"500e853ab88687717ce10766da7bcd639282bbe7","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.1.8.tgz","fileCount":11,"integrity":"sha512-EfEUKQ7qOyn3t70ZnlRVrvHg6wqRY/cQ3NhJNInaZjrAeLHJJon3osyQtKdwWudNXo61WKQ4ky61oeI2NZiqgA==","signatures":[{"sig":"MEYCIQC+7jHf8I2I0MGIMiKpX3oHtJrlFVZXWhqH5lZDLQAvzgIhAJTcKE1UuXy4Rd7CurGzs5CD5I7cODOJcVXBa3uzjymi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQfchACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrucxAAoEnaYAeLymxXRpy+sXYGOkZu9gg3+JwoF7ky50BZA2IWvX6s\r\n4pthmVVKmVpO7LPAZGODZ/MY22Y53OyLg9yiZtMdbR+pmDBgA1aE4GAijuuN\r\nf4H+k4dS9dL1zLVMJlcDROQPHEmbx8fLDo+gEibUce6bMp6O+3zZDUU4gw2B\r\nNF9U9jvZyPAKDip0Aw1j1oQEo9fLR8YPBHji1HqRgI0btWb52ddZGeqqY1BE\r\nlvNW8OoexoJ0Lt/2/G9Edl0xmgaslVv7RdhEK0fA0kEGus6749nA2SSA+XqM\r\n/Phpff/kPuasRRlUhobiUSJVvK5Z+DcPF1NAH7XH9lFWj2UfFzxJoWKseyPr\r\nIWz1c/EXNEiX/MYJ7I2YpeceJo85RTeMUfrI62pLe4GbEK73ceyxFVKBHwza\r\noEKx2Qcvlq6+DZDD2CsOa6bKAb7QlWj0/tb20EUsTQGFkZYBWYgpu7L5w5/l\r\n5fBd/loWsvm7nr+HT27i8kH58ysnMQjYpFhArAP/uA92M47dO6eAB5acA3LR\r\nLcdnVgBfRYU5s5B6lL5TFqQBxpV4HbZcIESbVNGa2V47qf8bF7+vfQOQTVm4\r\niCvhxa8H8BEeI5TnxaxGTfE90h6xf/mAOLfmMpF8qdbH7+Jl/kStxT0AFVlZ\r\nd4wL+qlc2GdMk5hULOr5+naNvSD1Sb3IdI4=\r\n=mwXd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.mjs","exports":{"import":"./dist/index.mjs","require":"./dist/index.js"},"scripts":{"test":"jest","build":"tsup","clean":"rimraf dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"https://github.com/jarlef/vite-plugin-preload","type":"git"},"description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"dependencies":{"jsdom":"^20.0.1","prettier":"^2.7.1","@rollup/pluginutils":"^4.2.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.1.2","tsup":"^6.2.3","vite":"^3.1.6","rimraf":"^3.0.2","@swc/core":"^1.3.6","@swc/jest":"^0.2.23","typescript":"^4.8.4","@types/jest":"^29.1.2","@types/node":"^18.8.3","@types/jsdom":"^20.0.0","@types/prettier":"^2.7.1","regenerator-runtime":"^0.13.9"},"peerDependencies":{"vite":">=2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.1.8_1665267489715_0.9929951051539101","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"vite-plugin-preload","version":"0.2.0","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.2.0","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"289ef82f50d649b44df913eef834bc117db8bc24","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.2.0.tgz","fileCount":11,"integrity":"sha512-nIRDzJu2u65gOo5Hl4PQwmvzf2zKkbsRJYQgVabpNgR85q9nA0TUDvEh2qu4laXUdlQ3t3NZVeVHP/WGhRGUkw==","signatures":[{"sig":"MEYCIQCFZepp8W7LB33DxibXaRuFEIafIHHE5rLXGN17OseLigIhAJ5ES0AXqQSulHtErph1cOGnzTn+lWCQAJG+dXPtSNNS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjy+J4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTfA/+Ksjd948Fmj6x4/BzZzAIqJ/HtVU6k8Pmbh5Cy4DGV4+J29BJ\r\nEcEEWlL3FCdwLFSaqrXsUV/FNMSxV1/w0vWhi3lIhA7FUK9Coft5or6HNAbK\r\nSA9yfbag7jWJhYDYRIaRjg6HHd7qLH1CG5hzu7iiDrs1RfKxdV1J26aAHOzq\r\n0Zl6s1cx9On1bbJG4Hx3hl4ja/Sf8Wki6+4x1/qasikb3pM9yK9sgEI9A9lW\r\nHzlrN1/ZnNbwLwwi1VGfFg/OL6hqPSspb0ImQ8Z/opHBpupLq50Dm2EE4CCl\r\n/93ugH6/rHsEh0tYpe5OO+/CWp1tuXNmIjsipp4iaxjpj8WZ1d+93D69twW+\r\n63w/CqvgWuH7ycM4G8eid5v1RKxowUIxSGtpQU5anNrbah7wuS/YdU06NjZ/\r\nCw0dGzTfMfwlsGGqDJWBhQRobSoLsxmixkCtM3hOp6deJ9R4QL6LJv/jzeCO\r\nxF8Mb593XlAmoGrIwxQEg0WX75fi23v8k47qr1ZE5zSuIiKi7rIKLGAcN92T\r\nlxTZWP406cnkLpmzl83jXF7SeJiyVLX+q8TvfkU+YwxnEG7wklHVMrEn49ox\r\nZnb9MqFdPK14WAKMr4gI3yOj9GOJ4Hw1emIWKr8ytZ1pgWRP1FN9tcjMwa8y\r\nTLxQWBdCWT0fx75hRUm6wmLImGDIQKfU1jA=\r\n=uk7w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.mjs","exports":{"import":"./dist/index.mjs","require":"./dist/index.js"},"scripts":{"test":"vitest","build":"tsup","clean":"del dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"https://github.com/jarlef/vite-plugin-preload","type":"git"},"description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"dependencies":{"jsdom":"^20.0.1","prettier":"^2.7.1","@rollup/pluginutils":"^4.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.2.3","vite":"^4.0.4","vitest":"^0.26.3","del-cli":"^5.0.0","typescript":"^4.8.4","@types/node":"^18.8.3","@types/jsdom":"^20.0.0","@types/prettier":"^2.7.1"},"peerDependencies":{"vite":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.2.0_1674306168090_0.6048259312656898","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"vite-plugin-preload","version":"0.3.0","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.3.0","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"b3352e8864defa3e1340b892e863046359be7d30","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.3.0.tgz","fileCount":11,"integrity":"sha512-9QJtuqJxhwuiKh86xwMw0HMvHERTG2JW3spNfoWl06YvnwhwGRe72mSUm6/sBJ0ao53D9R+1O9kE/JflKcOfnA==","signatures":[{"sig":"MEUCIGfbWtjrAITiJ74ffovlxAfV+Ym3uDy02f9EgyNMXRwfAiEAtpihwGavE/8gv+YxmrUxo7QVUnuWmAh75CHzqnzrDBY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18231},"main":"dist/index.js","module":"dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"scripts":{"test":"vitest","build":"tsup","clean":"del dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"https://github.com/jarlef/vite-plugin-preload","type":"git"},"description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"dependencies":{"jsdom":"^22.1.0","prettier":"^2.8.8","@rollup/pluginutils":"^5.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","vite":"^4.3.9","vitest":"^0.32.0","del-cli":"^5.0.0","typescript":"^5.1.3","@types/node":"^20.3.0","@types/jsdom":"^21.1.1","@types/prettier":"^2.7.3"},"peerDependencies":{"vite":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.3.0_1686526070786_0.9059685276576477","host":"s3://npm-registry-packages"}},"0.3.1":{"name":"vite-plugin-preload","version":"0.3.1","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.3.1","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"358cce24af146ed29361ec624951d7f537e48b73","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.3.1.tgz","fileCount":11,"integrity":"sha512-WuaNOEoTOzQcVjrLrePJ37cNFDBdN9WMgqDtt4791DzkZVrXBJCdzlQsCqyvZ7QAuMQBQEApGRrIYOvdT9qIuA==","signatures":[{"sig":"MEYCIQDi07vVZ8qzBnw/rp/fpLPPcaxD1bKdntq9lLiEa6B9jAIhAP1JxWwNkCpixE0fYTHG0cqFcdhb6z9Lub+I5nigreTu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18241},"main":"dist/index.js","module":"dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"scripts":{"test":"vitest","build":"tsup","clean":"del dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"https://github.com/jarlef/vite-plugin-preload","type":"git"},"description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"dependencies":{"jsdom":"^22.1.0","prettier":"^2.8.8","@rollup/pluginutils":"^5.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","vite":"^4.3.9","vitest":"^0.32.0","del-cli":"^5.0.0","typescript":"^5.1.3","@types/node":"^20.3.0","@types/jsdom":"^21.1.1","@types/prettier":"^2.7.3"},"peerDependencies":{"vite":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.3.1_1687182112772_0.8444988065266743","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"vite-plugin-preload","version":"0.4.0","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.4.0","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"4fcc2cd57da785c9bdbdbe9630ceef083f13503e","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.4.0.tgz","fileCount":9,"integrity":"sha512-c/hlZbIEMquIJoCL14sBl3ldIBBWFScdQWUURz7VUaT9xF29pDm8HC23zxZAnw4uGyP/JxdTceq+Hm3yt4hyRQ==","signatures":[{"sig":"MEUCIDWwhi5hDf1h/DzAKX1z1zoQ01JfwszU2ooOwPYSIJiWAiEA5R+5SKkXW0UiZeqpOUCZPbhh/9TqKgmCj38/WBoZ4FA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21539},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"gitHead":"bf423db8b7e599f254c110f2863efd35736251fd","scripts":{"test":"vitest","build":"tsup","clean":"del dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"git+https://github.com/jarlef/vite-plugin-preload.git","type":"git"},"_npmVersion":"9.6.4","description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"_nodeVersion":"20.1.0","dependencies":{"jsdom":"^24.0.0","prettier":"^3.2.5","@rollup/pluginutils":"^5.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vite":"^5.2.2","vitest":"^1.4.0","del-cli":"^5.1.0","typescript":"^5.4.3","@types/node":"^20.11.30","@types/jsdom":"^21.1.6","@types/prettier":"^3.0.0"},"peerDependencies":{"vite":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.4.0_1710972340960_0.9562406752024786","host":"s3://npm-registry-packages"}},"0.4.1":{"name":"vite-plugin-preload","version":"0.4.1","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.4.1","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"7f05bd7e9b6873b9efef953e8f5cb01f7bee4bc6","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.4.1.tgz","fileCount":9,"integrity":"sha512-ARX82Sluw9aQ7Y/FD/Ul4RZAT34lpe6LGbR+QFNuaorjMvIWaJCKLzA+qDSVutHFcGp/6zuv9OygdSYfnDfunw==","signatures":[{"sig":"MEYCIQDAOmn5g00n0DUs7pzBXCPNMMDgJIF47oygY+7csHnu/wIhAPh+5x2Rd2k31dCrmBMzYwEu0cieCazR7pWvRJ5P2a9v","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22533},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"gitHead":"d911b03742f6ad9f98695c09d7493fbabd6693e1","scripts":{"test":"vitest","build":"tsup","clean":"del dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"git+https://github.com/jarlef/vite-plugin-preload.git","type":"git"},"_npmVersion":"10.8.1","description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"_nodeVersion":"22.3.0","dependencies":{"jsdom":"^24.0.0","prettier":"^3.2.5","@rollup/pluginutils":"^5.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vite":"^5.2.2","vitest":"^1.4.0","del-cli":"^5.1.0","typescript":"^5.4.3","@types/node":"^20.11.30","@types/jsdom":"^21.1.6","@types/prettier":"^3.0.0"},"peerDependencies":{"vite":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.4.1_1722265057920_0.9609275729943796","host":"s3://npm-registry-packages"}},"0.4.2":{"name":"vite-plugin-preload","version":"0.4.2","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.4.2","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"f013c42ee50790efe3ebc0b8b0363b600ce3d1eb","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.4.2.tgz","fileCount":9,"integrity":"sha512-2gOJmFwmKJvIEbRGH/ZvZn35v+Cm2rLmP/qJb5W8WwBFwTCWpqmStO1jZ5RN7O24r5Cq6MPL8USU16xWAz6L0w==","signatures":[{"sig":"MEUCIAPskcYZnQ2oE2egF6f2BTr63G92UlrGxIQYo3cSvlHiAiEAqzB5dShe3uiamJZcYo5eGBc+X5XDaYxvixOZTpB1VV8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22702},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"gitHead":"a47bd300dc95ea0f1242f32c6e00e995af856310","scripts":{"test":"vitest","build":"tsup","clean":"del dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"git+https://github.com/jarlef/vite-plugin-preload.git","type":"git"},"_npmVersion":"10.8.1","description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"_nodeVersion":"22.3.0","dependencies":{"jsdom":"^24.0.0","prettier":"^3.2.5","@rollup/pluginutils":"^5.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vite":"^5.2.2","vitest":"^1.4.0","del-cli":"^5.1.0","typescript":"^5.4.3","@types/node":"^20.11.30","@types/jsdom":"^21.1.6","@types/prettier":"^3.0.0"},"peerDependencies":{"vite":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.4.2_1722336636170_0.2076214172752322","host":"s3://npm-registry-packages"}},"0.4.3":{"name":"vite-plugin-preload","version":"0.4.3","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.4.3","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"b83ec8769c970323a5fc5f1c913cd2dd896d977e","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.4.3.tgz","fileCount":12,"integrity":"sha512-oVVAypcWmuL4mTs/OgRSLYs276vrSf2yk4vzsGDdzzfmNldODqCV9SGXVIL48j5KShYGyzX5SvWM44ZmK6WwWw==","signatures":[{"sig":"MEYCIQCUHXyoQ8TNJORTMYA/yE5sv/xnA0EFR7Y1Tt1usk6Q8AIhAPkmEg6psTbuhBWSnLLY392IORaPKuVkHlHxv9o0mJcs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25741},"main":"dist/index.js","module":"dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"scripts":{"test":"vitest","build":"tsup","clean":"del dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"https://github.com/jarlef/vite-plugin-preload","type":"git"},"description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"dependencies":{"jsdom":"^24.0.0","prettier":"^3.2.5","@rollup/pluginutils":"^5.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vite":"^5.2.2","vitest":"^1.4.0","del-cli":"^5.1.0","typescript":"^5.4.3","@types/node":"^20.11.30","@types/jsdom":"^21.1.6","@types/prettier":"^3.0.0"},"peerDependencies":{"vite":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.4.3_1757175107493_0.7441645878607122","host":"s3://npm-registry-packages-npm-production"}},"0.4.4":{"name":"vite-plugin-preload","version":"0.4.4","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.4.4","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"ec46066ea7efe4a2f3e2fbaab6aa7f37489a0265","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.4.4.tgz","fileCount":9,"integrity":"sha512-OjuRSTRdd6Pl+0O0JUqNl4vrnqN44Jea1PqPr2LDTTJSJuNnRZlBtVKc1gtTjpfR/js0vZ1XnwnQzAwGgcegYA==","signatures":[{"sig":"MEYCIQDpgqXwqDfJ8eJTnwXN1Isyy+UtrB9IhiZL5EKWz95yvgIhAPaLQkZeWZYNWxqssCLZrG7sOzjBWGQr9J9j0bd9nPzb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25741},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"gitHead":"a02b465a1d42f91eda05e72c429d3a902bbf6288","scripts":{"test":"vitest","build":"tsup","clean":"del dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"git+https://github.com/jarlef/vite-plugin-preload.git","type":"git"},"_npmVersion":"11.4.2","description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)","directories":{},"_nodeVersion":"24.3.0","dependencies":{"jsdom":"^24.0.0","prettier":"^3.2.5","@rollup/pluginutils":"^5.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vite":"^5.2.2","vitest":"^1.4.0","del-cli":"^5.1.0","typescript":"^5.4.3","@types/node":"^20.11.30","@types/jsdom":"^21.1.6","@types/prettier":"^3.0.0"},"peerDependencies":{"vite":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.4.4_1757175338461_0.6653135943740844","host":"s3://npm-registry-packages-npm-production"}},"0.5.5":{"name":"vite-plugin-preload","version":"0.5.5","keywords":["vite","preload","plugin","bundle"],"author":{"name":"jarlef"},"license":"MIT","_id":"vite-plugin-preload@0.5.5","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"dist":{"shasum":"80d8b86e7d5d082c7716ba65471da3ac9ca2312b","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.5.5.tgz","fileCount":9,"integrity":"sha512-A2D5M+FnOirvi03h7a3WHl/cS8tKO2XRWjvCj9j1qUoXn38X5MoWgWpqDqYY954/9fBVZsW1gFdkD8xOREeeGQ==","signatures":[{"sig":"MEYCIQDujYtoA8kgzoK9gx+01yxf6RXQ/tY+cZ6TT6vF0ELDrwIhAKPRE7rCDEzbQj46hLRvUalImr7Vpo52suZ59MPsbqNr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25610},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.mjs","exports":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"gitHead":"1c52f5198409b50f2405d74b8e9e840a88d9b1cc","scripts":{"lint":"biome lint","test":"vitest","build":"tsup","clean":"del dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","format":"biome format","prepack":"yarn build","pretest":"yarn build"},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"repository":{"url":"git+https://github.com/jarlef/vite-plugin-preload.git","type":"git"},"_npmVersion":"11.6.0","description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload) ![npm downloads](https://img.shields.io/npm/dw/vite-plugin-preload) [![build](https://github.com/jarlef/vite-plugin-preload/actions/workflows/","directories":{},"_nodeVersion":"24.8.0","dependencies":{"jsdom":"^24.0.0","prettier":"^3.2.5","@rollup/pluginutils":"^5.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vite":"^5.2.2","vitest":"^1.4.0","del-cli":"^5.1.0","typescript":"^5.4.3","@types/node":"^20.11.30","@types/jsdom":"^21.1.6","@biomejs/biome":"^2.2.3","@types/prettier":"^3.0.0"},"peerDependencies":{"vite":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-preload_0.5.5_1774376437157_0.6033709489728416","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"vite-plugin-preload","version":"0.7.0","author":{"name":"jarlef"},"repository":{"type":"git","url":"git+https://github.com/jarlef/vite-plugin-preload.git"},"bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","license":"MIT","scripts":{"clean":"del dist \"./examples/*/dist/\" \"./examples/*/node_modules/\"","build":"tsup","lint":"biome lint","format":"biome format","test":"vitest","prepack":"yarn build"},"main":"dist/index.js","module":"dist/index.mjs","exports":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","require":"./dist/index.js"},"keywords":["vite","preload","plugin","bundle"],"dependencies":{"@rollup/pluginutils":"^5.3.0","jsdom":"^29.0.1","prettier":"^3.8.1"},"peerDependencies":{"vite":">=5.0.0"},"devDependencies":{"@biomejs/biome":"^2.4.8","@types/jsdom":"^28.0.1","@types/node":"^25.5.0","@types/prettier":"^3.0.0","del-cli":"^7.0.0","tsup":"^8.5.1","typescript":"^5.9.3","vite":"^7.2.6","vitest":"^4.1.1"},"packageManager":"yarn@4.13.0","_id":"vite-plugin-preload@0.7.0","gitHead":"906328d18000476e992fad27df6accb3a7f0b493","types":"./dist/index.d.ts","description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload) ![npm downloads](https://img.shields.io/npm/dw/vite-plugin-preload) [![build](https://github.com/jarlef/vite-plugin-preload/actions/workflows/","_nodeVersion":"24.8.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-YDMQXu3YGGHwoOHTAQed1OEk52jq4VuBxe6wuDgOO4Q1yA2Zy0VosA7Awm6T3xFnGMjaqCyGd9zg623b3QG+xg==","shasum":"7c588b82bd464af149e39495745987c7f7708267","tarball":"https://registry.npmjs.org/vite-plugin-preload/-/vite-plugin-preload-0.7.0.tgz","fileCount":9,"unpackedSize":25615,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCB3Uju7ugh4sswgpmNeDVYNjwH++H1NyPuYYMRhTm9aAIgBqE2opVrF8kZ7EkVZC7TNC/UDKN0BnzhTM0XPdpYOj0="}]},"_npmUser":{"name":"jarlef","email":"jarle.friestad@gmail.com"},"directories":{},"maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vite-plugin-preload_0.7.0_1774381736511_0.7271238658808223"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-24T22:52:29.579Z","modified":"2026-03-24T19:48:56.778Z","0.0.1":"2021-12-24T22:52:29.746Z","0.1.0":"2021-12-25T14:37:14.813Z","0.1.1":"2021-12-25T14:50:35.712Z","0.1.2":"2021-12-25T20:45:54.741Z","0.1.3":"2021-12-25T20:49:19.901Z","0.1.4":"2021-12-25T22:35:26.144Z","0.1.5":"2021-12-26T14:31:26.506Z","0.1.6":"2021-12-26T14:36:07.890Z","0.1.7":"2021-12-26T20:54:34.775Z","0.1.8":"2022-10-08T22:18:09.883Z","0.2.0":"2023-01-21T13:02:48.250Z","0.3.0":"2023-06-11T23:27:50.946Z","0.3.1":"2023-06-19T13:41:52.986Z","0.4.0":"2024-03-20T22:05:41.143Z","0.4.1":"2024-07-29T14:57:38.089Z","0.4.2":"2024-07-30T10:50:36.308Z","0.4.3":"2025-09-06T16:11:47.688Z","0.4.4":"2025-09-06T16:15:38.660Z","0.5.5":"2026-03-24T18:20:37.322Z","0.7.0":"2026-03-24T19:48:56.664Z"},"bugs":{"url":"https://github.com/jarlef/vite-plugin-preload/issues"},"author":{"name":"jarlef"},"license":"MIT","homepage":"https://github.com/jarlef/vite-plugin-preload/tree/main/#readme","keywords":["vite","preload","plugin","bundle"],"repository":{"type":"git","url":"git+https://github.com/jarlef/vite-plugin-preload.git"},"description":"[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload) ![npm downloads](https://img.shields.io/npm/dw/vite-plugin-preload) [![build](https://github.com/jarlef/vite-plugin-preload/actions/workflows/","maintainers":[{"name":"jarlef","email":"jarle.friestad@gmail.com"}],"readme":"# vite-plugin-preload\n\n[![npm version](https://badge.fury.io/js/vite-plugin-preload.svg)](https://badge.fury.io/js/vite-plugin-preload)\n![npm downloads](https://img.shields.io/npm/dw/vite-plugin-preload)\n[![build](https://github.com/jarlef/vite-plugin-preload/actions/workflows/ci.yaml/badge.svg)](https://github.com/jarlef/vite-plugin-preload/actions/workflows/ci.yaml)\n\nA Plugin to preload all chunks and stylesheets when dealing with code splitting through\nframeworks (e.g React.lazy) instead of manualChunks in Vite\n\n## Installation\n\n```sh\nyarn add vite-plugin-preload --dev\n```\n\nor\n\n```sh\nnpm i vite-plugin-preload -D\n```\n\n## Usage\n\nConfiguration\n\n```javascript\n// vite.config.js\nimport { defineConfig } from \"vite\";\nimport react from \"@vitejs/plugin-react\";\nimport preload from \"vite-plugin-preload\";\n\nexport default defineConfig({\n  plugins: [react(), preload()],\n});\n```\n\n### Options\n\n```ts\ninterface PreloadOptions {\n  includeJs: boolean;\n  includeCss: boolean;\n  format?: boolean | Omit<PrettierOptions, \"parser\">;\n  mode?: 'preload' | 'prefetch';\n  shouldPreload: (chunkInfo: OutputChunk | OutputAsset) => boolean;\n  generatePreloadManifestJsonPath?: string\n}\n```\n\nHtml before:\n\n```html\n<html>\n  <head>\n    <title>React example</title>\n    <script\n      type=\"module\"\n      crossorigin=\"\"\n      src=\"/assets/index.06e372d5.js\"\n    ></script>\n    <link rel=\"modulepreload\" href=\"/assets/vendor.4fa92e17.js\" />\n    <link rel=\"stylesheet\" href=\"/assets/index.5de8cc00.css\" />\n  </head>\n  <body>\n    <div id=\"root\"></div>\n  </body>\n</html>\n```\n\nHtml after:\n\n```html\n<html>\n  <head>\n    <title>React example</title>\n    <script\n      type=\"module\"\n      crossorigin=\"\"\n      src=\"/assets/index.06e372d5.js\"\n    ></script>\n    <link rel=\"modulepreload\" href=\"/assets/vendor.4fa92e17.js\" />\n    <link rel=\"stylesheet\" href=\"/assets/index.5de8cc00.css\" />\n    <link rel=\"modulepreload\" href=\"/assets/index.470dc361.js\" />\n    <link rel=\"modulepreload\" href=\"/assets/index.f2bd501d.js\" />\n    <link rel=\"modulepreload\" href=\"/assets/index.79b31f97.js\" />\n    <link rel=\"stylesheet\" href=\"/assets/index.e3157e37.css\" />\n    <link rel=\"stylesheet\" href=\"/assets/index.2921fa01.css\" />\n    <link rel=\"stylesheet\" href=\"/assets/index.ef9b644c.css\" />\n  </head>\n  <body>\n    <div id=\"root\"></div>\n  </body>\n</html>\n```\n\n## Code splitting\n\nWhen producing code splits using manual chunking in rollup, all chunks are added to\nthe entry html file (index.html) as `<script type=\"preloadmodule\" src=\"/assets/foo.12345.js\"></script>`.\nCode splitting is performed by a configured rule that is not based on how the application is structured. Its mearly splitting the code into smaller chunks. If this is your cup of tea, then you are all good. You don't need this plugin.\n\nIf you however decide to use the react way of performing code splitting by triggering import inside `React.lazy`. This will also produced chunks that are not added as preloaded modules. This is by design, as the React.lazy fetches the module async when it is needed. React.lazy is also the most natural way of performing code splitting based on component level, e.g by navigation pages in react-router og clearly defined modules in the code (pages, shared, modula-a, module-b etc).\n\n## But why then?\n\nIn short. Performance and stability.\n\n### Performance. Developer performance that is\n\nCode splitting is good for developer performance. As your code base grows, more files are sent from your\nsrc directory when starting the vite dev server. This can be slow. Really slow. Why pre-serve the entire code base when its not needed. Using code splitting with Reacy.lazy, vite is only serving the modules used for the currently loaded component tree and load more chunks is performed async. Hurray\n\n### Stability\n\nNow the plot thickens. Lets say you deploy your application and it produces 3 javascript chunks (index.1.js, index.2.js and index.3.js) and only the entry chunk is served. The user uses your application and decides to navigate to a sub route which you have flagged with React.lazy (e.g its located in index.3.js). In the mean time you have just trigged a new deploy and the chunks are now different. index.3.js is no longer there and have been replaced by index.4.js. The user receives a dynamic import error when trying to fetch the outdated chunk. The solution for the user is to refresh the entire page in the browser. This could have been avoided by just preloading all the chunks. Be aware that this of course is a trade off on the initial app load time.\n","readmeFilename":"README.md"}