From 5f4b6d41c35c4fea0af9888ebdac85baf8f85908 Mon Sep 17 00:00:00 2001 From: Mohab Sameh Date: Thu, 20 Mar 2025 21:10:55 +0200 Subject: [PATCH 1/2] fix typos --- src/content/migrate/5.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/migrate/5.mdx b/src/content/migrate/5.mdx index 32066e4cda69..e426bdf584d0 100644 --- a/src/content/migrate/5.mdx +++ b/src/content/migrate/5.mdx @@ -148,7 +148,7 @@ If you were not able to upgrade some plugins/loaders to the latest in Upgrade we } ``` - > **Note**: Codemod for this Chnages: + > **Note**: Codemod for this changes: > > ```bash > npx codemod set-target-to-false-and-update-plugins @@ -178,7 +178,7 @@ If you were not able to upgrade some plugins/loaders to the latest in Upgrade we } ``` - > **Note**: Codemod for this Chnages: + > **Note**: Codemod for this changes: > > ```bash > npx codemod webpack/v5/migrate-library-target-to-library-object @@ -242,10 +242,10 @@ import pkg from './package.json'; console.log(pkg.version); ``` - > **Note**: Codemod for this Chnages: + > **Note**: Codemod for this changes: > > ```bash - > npx codemod codemod webpack/v5/json-imports-to-default-imports + > npx codemod webpack/v5/json-imports-to-default-imports > ``` > > (See the [registry here](https://codemod.com/registry/webpack-v5-json-imports-to-default-imports).) From 9581df0b29d29c374a6c6ff96cfb68e1d03de24f Mon Sep 17 00:00:00 2001 From: Mohab Sameh Date: Wed, 23 Apr 2025 17:38:33 +0200 Subject: [PATCH 2/2] fix(migrate): fix typos & commands --- src/content/migrate/5.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/content/migrate/5.mdx b/src/content/migrate/5.mdx index e426bdf584d0..77a44fe80ebb 100644 --- a/src/content/migrate/5.mdx +++ b/src/content/migrate/5.mdx @@ -46,7 +46,7 @@ Please note that these are not official webpack codemods, and while it aims to s Run the [webpack v5 migration codemods](https://go.codemod.com/webpack-v5-recipe): ```bash -npx codemod webpack/v5/migration-recipe +npx codemod@latest webpack/v5/migration-recipe ``` This will run the following codemods from [Codemod registry](https://codemod.com/registry): @@ -148,10 +148,10 @@ If you were not able to upgrade some plugins/loaders to the latest in Upgrade we } ``` - > **Note**: Codemod for this changes: + > **Note**: Codemod for this change: > > ```bash - > npx codemod set-target-to-false-and-update-plugins + > npx codemod webpack/v5/set-target-to-false-and-update-plugins > ``` > > (See the [registry here](https://codemod.com/registry/webpack-v5-set-target-to-false-and-update-plugins).) @@ -178,7 +178,7 @@ If you were not able to upgrade some plugins/loaders to the latest in Upgrade we } ``` - > **Note**: Codemod for this changes: + > **Note**: Codemod for this change: > > ```bash > npx codemod webpack/v5/migrate-library-target-to-library-object @@ -242,7 +242,7 @@ import pkg from './package.json'; console.log(pkg.version); ``` - > **Note**: Codemod for this changes: + > **Note**: Codemod for this change: > > ```bash > npx codemod webpack/v5/json-imports-to-default-imports