{"id":13447911,"url":"https://github.com/Thoughtscript/x_team_build_tool_round_up","last_synced_at":"2025-03-22T01:31:34.435Z","repository":{"id":156909358,"uuid":"130395504","full_name":"Thoughtscript/x_team_build_tool_round_up","owner":"Thoughtscript","description":"X-Team Rollup v Webpack v Parcel comparison!","archived":true,"fork":false,"pushed_at":"2018-05-11T02:59:29.000Z","size":145,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-28T13:11:30.185Z","etag":null,"topics":["parcel","rollup","webpack4"],"latest_commit_sha":null,"homepage":"https://x-team.com/blog/rollup-webpack-parcel-comparison/","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/Thoughtscript.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":"2018-04-20T17:44:46.000Z","updated_at":"2024-06-23T01:46:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ca5e558-70f2-435c-9627-f4df1713a0e0","html_url":"https://github.com/Thoughtscript/x_team_build_tool_round_up","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fx_team_build_tool_round_up","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fx_team_build_tool_round_up/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fx_team_build_tool_round_up/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fx_team_build_tool_round_up/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thoughtscript","download_url":"https://codeload.github.com/Thoughtscript/x_team_build_tool_round_up/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244893464,"owners_count":20527598,"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":["parcel","rollup","webpack4"],"created_at":"2024-07-31T05:01:30.092Z","updated_at":"2025-03-22T01:31:34.430Z","avatar_url":"https://github.com/Thoughtscript.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# x_team_build_tool_round_up\n\nX-Team Rollup v Webpack v Parcel comparison!\n\n# Build Tool Show Down\n\nWe'll build a simple React app that's got simple implementations of all the basics:\n```\n    1.  React Router v4\n    2.  React Redux\n    3.  React 16.2.x\n```\n\nThe exact `package.json` dependencies for our build tools:\n\nShared `babel` dependencies:\n```json\n    \"babel-loader\": \"=7.1.4\",\n    \"babel-plugin-external-helpers\": \"=6.22.0\",\n    \"babel-preset-env\": \"=1.6.1\",\n    \"babel-preset-react\": \"=6.24.1\",\n    \"babel-preset-stage-0\": \"=6.24.1\"\n```\n\n`parcel` dependencies:\n```json\n    \"parcel-bundler\": \"=1.7.1\"\n```\n\n`rollup` dependencies:\n```json\n    \"rollup\": \"=0.58.2\",\n    \"rollup-plugin-babel\": \"=3.0.4\",\n    \"rollup-plugin-uglify\": \"=3.0.0\"\n```\n\n`webpack` dependencies:\n```json\n    \"webpack\": \"=4.6.0\",\n    \"webpack-cli\": \"=2.0.15\"\n```\n\nEach build tool's configuration is seperated into independent directories!\n\n# Battle of the Builds\n\nWe'll be comparing *build time* for `development` and `production` and additional features:\n\n```bash\n    $ npm run build-parcel\n    $ npm run build-webpack\n    $ npm run build-rollup\n```\n\n# Testing\n\nAll three testing libraries were tested and built on the following Dell 15 \u003ca href=\"https://pilot.search.dell.com/laptops/xps\"\u003eXPS\u003c/a\u003e 2016 with specs:\n\n```\n    Intel Core i7-6700HQ Quad-Core (8 Logical Cores) at 2.60 GHz\n    32 GB RAM\n    Windows 10 Pro + Linux Subsystem and Cygwin\n    NVIDIA 960M GPU\n    256GB m2 PCIe SSD\n    15.6\" FHD Screen\n```\n\nResults divided into `production` and `development` modes:\n\n\u003ctable\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth\u003eTool\u003c/th\u003e\n            \u003cth\u003eDev Build Time One\u003c/th\u003e\n            \u003cth\u003eDev Build Time Two\u003c/th\u003e\n            \u003cth\u003eDev Build Time Three\u003c/th\u003e\n            \u003cth\u003eDev Build Time Avg\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003cth\u003eParcel\u003c/th\u003e\n            \u003cth\u003e14.92 s\u003c/th\u003e\n            \u003cth\u003e5.22 s\u003c/th\u003e\n            \u003cth\u003e4.36 s\u003c/th\u003e\n            \u003cth\u003e8.16 avg s\u003c/th\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003cth\u003eRollup\u003c/th\u003e\n            \u003cth\u003e0.570 s\u003c/th\u003e\n            \u003cth\u003e0.482 s\u003c/th\u003e\n            \u003cth\u003e0.487 s\u003c/th\u003e\n            \u003cth\u003e0.513 avg s\u003c/th\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003cth\u003eWebpack\u003c/th\u003e\n            \u003cth\u003e3.608 s\u003c/th\u003e\n            \u003cth\u003e3.328 s\u003c/th\u003e\n            \u003cth\u003e3.844 s\u003c/th\u003e\n            \u003cth\u003e3.59 avg s\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n`Production` mode:\n\n\u003ctable\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth\u003eTool\u003c/th\u003e\n            \u003cth\u003eProd Build Time One\u003c/th\u003e\n            \u003cth\u003eProd Build Time Two\u003c/th\u003e\n            \u003cth\u003eProd Build Time Three\u003c/th\u003e\n            \u003cth\u003eProd Build Time Avg\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003cth\u003eParcel\u003c/th\u003e\n            \u003cth\u003e738.509 s\u003c/th\u003e\n            \u003cth\u003e35.364 s\u003c/th\u003e\n            \u003cth\u003e35.592 s\u003c/th\u003e\n            \u003cth\u003e269.82 avg s\u003c/th\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003cth\u003eRollup\u003c/th\u003e\n            \u003cth\u003e0.712 s\u003c/th\u003e\n            \u003cth\u003e0.665 s\u003c/th\u003e\n            \u003cth\u003e0.714 s\u003c/th\u003e\n            \u003cth\u003e0.697 avg s\u003c/th\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003cth\u003eWebpack\u003c/th\u003e\n            \u003cth\u003e3.636 s\u003c/th\u003e\n            \u003cth\u003e3.805 s\u003c/th\u003e\n            \u003cth\u003e4.305 s\u003c/th\u003e\n            \u003cth\u003e3.915 avg s\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n### Other Considerations\n\nAbove, we compare raw build time alone but there are several other highly relevant considerations:\n\n1. `Parcel`'s caching feature sees dramatically decreases in time consumption after the initial run. For frequent, small changes, in smaller projects `Parcel` is a great choice.\n2. `Rollup` provides much simpler configuration over `webpack 4` and has a host of pre-configured plugins that are a breeze to incorporate into your project. `Rollup`'s also the fastest of the build tools **period**. \n3. `Rollup` also provides convient *source maps* which can aid in debugging.\n4. `webpack 4` has gotten a lot easier to use and particularly through the convenient `mode` attribute (which will enforce *minification* when set to 'production' automatically now).\n\n### Takeaway\n\nOverall, `Parcel`'s a fantastic choice for small projects since it's requires *zero* configuration. \n\n`Rollup` represents the next generation of build tools and is lightning fast with easy configuration. \n\n`webpack 4` represents a great improvement in the tradition of a tried and true universal build-tool workhorse. It's also largely interchangeable with `webpack 3` configuration which simplifies migration.\n\n# Shout Outs and Great Resources\n\nhttps://parceljs.org/\n\nhttps://webpack.js.org/\n\nhttps://code.lengstorf.com/learn-rollup-js/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThoughtscript%2Fx_team_build_tool_round_up","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FThoughtscript%2Fx_team_build_tool_round_up","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThoughtscript%2Fx_team_build_tool_round_up/lists"}