Skip to content

docs: adjust wording #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions src/content/migrate/5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,23 @@ Webpack 5 requires at least Node.js 10.13.0 (LTS), so make sure you upgrade your

## Codemods

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

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.

Run the [webpack v5 migration codemods](https://go.codemod.com/webpack-v5-recipe):

```bash
npx codemod webpack/v5/migration-recipe
```

This will run the following codemods from the webpack Codemod repository:

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

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).
- [`webpack/v5/set-target-to-false-and-update-plugins`](https://go.codemod.com/webpack-set-target-false)
- [`webpack/v5/migrate-library-target-to-library-object`](https://go.codemod.com/webpack-migrate-library-target)
- [`webpack/v5/json-imports-to-default-imports`](https://go.codemod.com/webpack-json-imports)

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

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

Expand Down