webpack.js.org
webpack.js.org copied to clipboard
feat: Added codemods for migrating webpack from v4 to v5
This PR enhances the webpack v5 from v4 migration guide by incorporating codemod integration to streamline the upgrade process for developers. The motivation behind this change is to provide a more efficient and time-saving approach for migrating from v4 to v5, helping the community upgrade with ease.
Key changes include:
- Introducing Codemods: Added a section in the migration guide to highlight the availability of codemods for automating common migration tasks.
- Codemod Recipe: Provided a codemod recipe that runs the following codemods from the Sentry.js Codemod repository:
npx codemod webpack/v5/migration-recipe
- webpack/v5/set-target-to-false-and-update-plugins Registry Link
- webpack/v5/migrate-library-target-to-library-object Registry Link
- webpack/v5/json-imports-to-default-imports Registry Link
By incorporating these changes, the migration guide now provides a more comprehensive and efficient solution for upgrading to webpack v5, helping developers save time and effort during the migration process.
The committers listed above are authorized under a signed CLA.
- :white_check_mark: login: akash-kumar-dev / name: Akash Kumar (a0677b4e3f1b3a4933cfb897d113eacb885494b5, 77ef4b519991df1ea858c8c2c6d3bef030696fe1, 6668f5c4a3e1ee18746b1a45b5ce3b48b35e48fa, f56219e84e79df306589f143fe0b68cc9b902ba5)
- :white_check_mark: login: mohab-sameh / name: Mohab Sameh (d3fc7a06c956d885caf60e852def7941c049e9c5)
@akash-kumar-dev is attempting to deploy a commit to the Webpack Docs Team on Vercel.
A member of the Team first needs to authorize it.
https://github.com/codemod-com/codemod/pull/1317
Thanks for the feedback! I've updated the documentation to clarify that the codemod is unofficial and may require additional manual steps for a complete migration.
Hi @snitin315 👋 Mohab from Codemod core team here.
We reviewed and adjusted this from our end as well. Please let me know if there are any changes you'd like to see. Cheers.
@mohab-sameh can you sign CLA?
@snitin315 Should I sign this personally in addition to the one signed by @alexbit-codemod on behalf of Codemod?
You can sign it personally
@snitin315 done. Ready to merge now.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| webpack-js-org | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 12, 2024 8:48am |
@snitin315 Just checking up on this. CLA should be signed. Please let me know if you'd like the core team to make more changes or do final reviews so we can merge this.