{"id":17350349,"url":"https://github.com/meskill/webpack5-performance-issue","last_synced_at":"2026-07-10T13:31:51.989Z","repository":{"id":85385459,"uuid":"318446712","full_name":"meskill/webpack5-performance-issue","owner":"meskill","description":"Reproduction repo for issue https://github.com/webpack/webpack/issues/12102","archived":false,"fork":false,"pushed_at":"2021-07-02T13:43:35.000Z","size":495,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T03:27:55.241Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meskill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-12-04T08:06:32.000Z","updated_at":"2021-09-16T20:10:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"f31e58e5-c8b4-412e-ae6a-55e80777db4b","html_url":"https://github.com/meskill/webpack5-performance-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meskill/webpack5-performance-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meskill%2Fwebpack5-performance-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meskill%2Fwebpack5-performance-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meskill%2Fwebpack5-performance-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meskill%2Fwebpack5-performance-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meskill","download_url":"https://codeload.github.com/meskill/webpack5-performance-issue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meskill%2Fwebpack5-performance-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35333326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-10-15T17:06:36.291Z","updated_at":"2026-07-10T13:31:51.972Z","avatar_url":"https://github.com/meskill.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack 5 test repo\n\nThis repo shows performance degradation of rebuild for webpack5 comparing to webpack4\n\nsource code is based on https://github.com/Yog9/SnapShot to simulate some real world example\n\n## How to reproduce\n\n1. Clone this repo\n2. Run `npm ci`\n3. Run `cd webpack4 \u0026\u0026 npm ci \u0026\u0026 npm run start` webpack will start in watch mode with node's inspect flag to allow profiling\n4. Make some changes to src to trigger bundle rebuild (for example change 'root' string inside ./src/index.js)\n\n   This will show time to rebuild for webpack4:\n   ```\n    [webpack-cli] Compilation finished\n    Hash: ba2b207d6c77ce2c4d86\n    Version: webpack 4.44.2\n    Time: 30ms\n    Built at: 12/04/2020 8:38:32 AM\n                            Asset      Size  Chunks                         Chunk Names\n                            main.js  1.12 MiB    main  [emitted]              main\n    styles.d938c1a8dd4406a5b9a5.css  3.53 KiB    main  [emitted] [immutable]  main\n    Entrypoint main = styles.d938c1a8dd4406a5b9a5.css main.js\n    [0] css ../node_modules/css-loader/dist/cjs.js??ref--5-1!../src/index.css 3.53 KiB {main}\n    [../node_modules/react-dom/cjs/react-dom.development.js] 708 KiB {main}\n    [../node_modules/react-dom/index.js] 1.32 KiB {main}\n    [../node_modules/react-router-dom/esm/react-router-dom.js] 10.1 KiB {main}\n    [../node_modules/react/cjs/react.development.js] 65.9 KiB {main}\n    [../node_modules/react/index.js] 189 bytes {main}\n    [../src/App.js] 6.2 KiB {main}\n    [../src/components copy 2 sync recursive ^\\.\\/.*$] ../src/components copy 2 sync ^\\.\\/.*$ 493 bytes {main}\n    [../src/components copy 2/Container.js] 761 bytes {main}\n    [../src/components copy 3 sync recursive ^\\.\\/.*$] ../src/components copy 3 sync ^\\.\\/.*$ 493 bytes {main}\n    [../src/components copy sync recursive ^\\.\\/.*$] ../src/components copy sync ^\\.\\/.*$ 493 bytes {main}\n    [../src/components sync recursive ^\\.\\/.*$] ../src/components sync ^\\.\\/.*$ 493 bytes {main}\n    [../src/index.css] 50 bytes {main}\n    [../src/index.js] 735 bytes {main} [built]\n    [../src/serviceWorker.js] 4.6 KiB {main}\n        + 97 hidden modules\n   ```\n\n    ![webpack4 profile](profile/webpack4.jpg)\n\n5. Close current running command at terminal and run `cd ../webpack5 \u0026\u0026 npm ci \u0026\u0026 npm run start`\n6. Make some changes to src to trigger bundle rebuild (for example change 'root' string inside ./src/index.js)\n    ```\n    [webpack-cli] Compilation finished\n    assets by status 3.53 KiB [cached] 1 asset\n    asset main.js 1.16 MiB [emitted] (name: main)\n    Entrypoint main 1.16 MiB = styles.679973daa17585e38272.css 3.53 KiB main.js 1.16 MiB\n    cached modules 1020 KiB (javascript) 3.53 KiB (css/mini-extract) [cached] 109 modules\n    runtime modules 1.19 KiB 5 modules\n    ../src/index.js 735 bytes [built] [code generated]\n    webpack 5.9.0 compiled successfully in 90 ms\n    ```\n\n    ![webpack5 profile](profile/webpack5.jpg)\n7. Rebuild time for webpack5 shows more than 2 times slowness compare to webpack4","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeskill%2Fwebpack5-performance-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeskill%2Fwebpack5-performance-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeskill%2Fwebpack5-performance-issue/lists"}