Skip to content

Commit f56219e

Browse files
Merge pull request #2 from mohab-sameh/codemod-migration-v5
docs: adjust wording
2 parents 6668f5c + d3fc7a0 commit f56219e

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/content/migrate/5.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,23 @@ Webpack 5 requires at least Node.js 10.13.0 (LTS), so make sure you upgrade your
3939

4040
## Codemods
4141

42-
To assist with the upgrade from Webpack v4 to v5, we have provided a community codemod that can help automate parts of the migration process. Please note that this codemod is not an official Webpack tool, and while it aims to streamline the migration, it may not cover all cases. You may still need to perform additional manual steps to fully complete the upgrade. Run the following command to use the codemod for Webpack v5 migration:
42+
To assist with the upgrade from webpack v4 to v5, [Codemod](https://github.com/codemod-com/codemod) provides open-source community codemods that can help automate most of the migration process.
43+
44+
Please note that these are not official webpack codemods, and while it aims to streamline the migration, it may not cover all cases. You may still need to perform additional manual steps to fully complete the upgrade.
45+
46+
Run the [webpack v5 migration codemods](https://go.codemod.com/webpack-v5-recipe):
4347

4448
```bash
4549
npx codemod webpack/v5/migration-recipe
4650
```
4751

48-
This will run the following codemods from the webpack Codemod repository:
49-
50-
- **webpack/v5/set-target-to-false-and-update-plugins**
51-
- **webpack/v5/migrate-library-target-to-library-object**
52-
- **webpack/v5/json-imports-to-default-imports**
52+
This will run the following codemods from [Codemod registry](https://codemod.com/registry):
5353

54-
Each of these codemods automates the changes listed in the v5 migration guide. For a complete list of available webpack codemods and further details, see the [codemod registry](https://codemod.com/registry?q=webpack).
54+
- [`webpack/v5/set-target-to-false-and-update-plugins`](https://go.codemod.com/webpack-set-target-false)
55+
- [`webpack/v5/migrate-library-target-to-library-object`](https://go.codemod.com/webpack-migrate-library-target)
56+
- [`webpack/v5/json-imports-to-default-imports`](https://go.codemod.com/webpack-json-imports)
5557

58+
Each of these codemods automates a change listed in the webpack v5 migration guide. For a complete list of available webpack v5 codemods, see [Codemod Registry](https://go.codemod.com/webpack-v5).
5659

5760
### Make sure your build has no errors or warnings
5861

0 commit comments

Comments
 (0)