From 30db6852bafd73f2eee5b9d008101425883c255e Mon Sep 17 00:00:00 2001 From: Julien Wajsberg Date: Mon, 5 Sep 2022 18:44:39 +0200 Subject: [PATCH 1/2] =?UTF-8?q?docs(Migration):=20`loaders`=20=E2=86=92=20?= =?UTF-8?q?`use`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit My understanding is that the deprecated `loaders` was removed in https://github.com/webpack/webpack/pull/9138 which was in https://github.com/webpack/webpack/releases/tag/v5.74.0 (should that have been a major version upgrade?) --- src/content/migrate/5.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/migrate/5.mdx b/src/content/migrate/5.mdx index 8de2d435a289..6bc398720d3b 100644 --- a/src/content/migrate/5.mdx +++ b/src/content/migrate/5.mdx @@ -68,6 +68,7 @@ Update the following options to their new version (if used): - `Compilation.entries` → `Compilation.entryDependencies` - `serve` → `serve` is removed in favor of [`DevServer`](/configuration/dev-server/) - [`Rule.query`](/configuration/module/#ruleoptions--rulequery) (deprecated since v3) → `Rule.options`/`UseEntry.options` +- `loaders` → `use` ### Test webpack 5 compatibility From a8d036f2a394cd38d581e816094508513d9fe1ce Mon Sep 17 00:00:00 2001 From: Sam Chen Date: Wed, 19 Oct 2022 21:11:56 +0800 Subject: [PATCH 2/2] Update src/content/migrate/5.mdx --- src/content/migrate/5.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/migrate/5.mdx b/src/content/migrate/5.mdx index 6bc398720d3b..ceb9b012535d 100644 --- a/src/content/migrate/5.mdx +++ b/src/content/migrate/5.mdx @@ -68,7 +68,7 @@ Update the following options to their new version (if used): - `Compilation.entries` → `Compilation.entryDependencies` - `serve` → `serve` is removed in favor of [`DevServer`](/configuration/dev-server/) - [`Rule.query`](/configuration/module/#ruleoptions--rulequery) (deprecated since v3) → `Rule.options`/`UseEntry.options` -- `loaders` → `use` +- `Rule.loaders` → [`Rule.use`](/configuration/module/#ruleuse) ### Test webpack 5 compatibility