webpack / webpack.js.org

Repository for webpack documentation and more!
https://webpack.js.org
Creative Commons Attribution 4.0 International
2.21k stars 3.31k forks source link

feat: Added codemods for migrating webpack from v4 to v5 #7388

Open akash-kumar-dev opened 2 months ago

akash-kumar-dev commented 2 months ago

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.

linux-foundation-easycla[bot] commented 2 months ago

CLA Signed

The committers listed above are authorized under a signed CLA.

vercel[bot] commented 2 months ago

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

chenxsan commented 2 months ago

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

akash-kumar-dev commented 2 months ago

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.

mohab-sameh commented 2 months ago

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.

snitin315 commented 1 month ago

@mohab-sameh can you sign CLA?

mohab-sameh commented 1 month ago

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

snitin315 commented 1 month ago

You can sign it personally

mohab-sameh commented 1 month ago

@snitin315 done. Ready to merge now.

vercel[bot] commented 1 month ago

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
mohab-sameh commented 3 weeks ago

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