webpack.js.org icon indicating copy to clipboard operation
webpack.js.org copied to clipboard

feat: Added codemods for migrating webpack from v4 to v5

Open akash-kumar-dev opened this issue 1 year ago • 10 comments

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:

  1. Introducing Codemods: Added a section in the migration guide to highlight the availability of codemods for automating common migration tasks.
  2. Codemod Recipe: Provided a codemod recipe that runs the following codemods from the Sentry.js Codemod repository:
    npx codemod webpack/v5/migration-recipe
    

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.

akash-kumar-dev avatar Sep 10 '24 10:09 akash-kumar-dev

CLA Signed

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.

vercel[bot] avatar Sep 10 '24 10:09 vercel[bot]

https://github.com/codemod-com/codemod/pull/1317

chenxsan avatar Sep 10 '24 12:09 chenxsan

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.

akash-kumar-dev avatar Sep 12 '24 08:09 akash-kumar-dev

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 avatar Sep 17 '24 13:09 mohab-sameh

@mohab-sameh can you sign CLA?

snitin315 avatar Oct 01 '24 04:10 snitin315

@snitin315 Should I sign this personally in addition to the one signed by @alexbit-codemod on behalf of Codemod?

mohab-sameh avatar Oct 01 '24 15:10 mohab-sameh

You can sign it personally

snitin315 avatar Oct 01 '24 16:10 snitin315

@snitin315 done. Ready to merge now.

mohab-sameh avatar Oct 01 '24 17:10 mohab-sameh

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

vercel[bot] avatar Oct 12 '24 08:10 vercel[bot]

@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.

mohab-sameh avatar Oct 24 '24 13:10 mohab-sameh