{"id":23775720,"url":"https://github.com/khodorammar/rspack-plugin-retry-chunk-load","last_synced_at":"2025-09-05T19:32:21.883Z","repository":{"id":269805094,"uuid":"908514184","full_name":"KhodorAmmar/rspack-plugin-retry-chunk-load","owner":"KhodorAmmar","description":"A rspack plugin to retry loading of chunks that failed to load","archived":false,"fork":false,"pushed_at":"2024-12-26T09:36:01.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-26T09:41:36.657Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KhodorAmmar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-26T09:00:31.000Z","updated_at":"2024-12-26T09:34:52.000Z","dependencies_parsed_at":"2024-12-26T13:01:12.633Z","dependency_job_id":null,"html_url":"https://github.com/KhodorAmmar/rspack-plugin-retry-chunk-load","commit_stats":null,"previous_names":["khodorammar/rspack-plugin-retry-chunk-load","khodorammar/rspack-retry-chunk-load-plugin"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhodorAmmar%2Frspack-plugin-retry-chunk-load","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhodorAmmar%2Frspack-plugin-retry-chunk-load/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhodorAmmar%2Frspack-plugin-retry-chunk-load/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhodorAmmar%2Frspack-plugin-retry-chunk-load/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KhodorAmmar","download_url":"https://codeload.github.com/KhodorAmmar/rspack-plugin-retry-chunk-load/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232055472,"owners_count":18466159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-01T07:01:32.291Z","updated_at":"2025-09-05T19:32:21.873Z","avatar_url":"https://github.com/KhodorAmmar.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Rspack Plugins"],"readme":"# rspack-plugin-retry-chunk-load\n\n[![npm version](https://badge.fury.io/js/rspack-plugin-retry-chunk-load.svg)](http://badge.fury.io/js/rspack-plugin-retry-chunk-load)\n[![GitHub issues](https://img.shields.io/github/issues/khodorammar/rspack-plugin-retry-chunk-load.svg)](https://github.com/khodorammar/rspack-plugin-retry-chunk-load/issues)\n[![GitHub stars](https://img.shields.io/github/stars/khodorammar/rspack-plugin-retry-chunk-load.svg)](https://github.com/khodorammar/rspack-plugin-retry-chunk-load/stargazers)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/khodorammar/rspack-plugin-retry-chunk-load/master/LICENSE)\n\nA rspack plugin to retry loading of async chunks that failed to load\n\nInspired by [webpack-retry-load-plugin](https://github.com/mattlewis92/webpack-retry-chunk-load-plugin)\n\n## Usage\n\n```javascript\n// rspack.config.js\nimport { RetryChunkLoadPlugin } from \"rspack-plugin-retry-chunk-load\";\n\nplugins: [\n\tnew RetryChunkLoadPlugin({\n\t\t/**\n\t\t * Optional identifier for the cache-busting function. Can be 'default' (`?cache-bust=true`) or 'timestamp' (Date.now()).\n\t\t */\n\t\tcacheBust: \"timestamp\",\n\t\t/**\n\t\t * Optional code to be executed in the browser context if after all retries chunk is not loaded.\n\t\t * if not set - nothing will happen and error will be returned to the chunk loader.\n\t\t */\n\t\tlastResortScript: \"window.location.href='/500.html'\",\n\t\t/**\n\t\t * Optional value to set the maximum number of retries to load the chunk.\n\t\t * Default is 3.\n\t\t */\n\t\tmaxRetries: 3,\n\t\t/**\n\t\t * Optional value to set the amount of time in milliseconds before trying to load the chunk again.\n\t\t * Default is 100ms.\n\t\t */\n\t\tretryDelay: 100\n\t})\n];\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhodorammar%2Frspack-plugin-retry-chunk-load","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhodorammar%2Frspack-plugin-retry-chunk-load","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhodorammar%2Frspack-plugin-retry-chunk-load/lists"}