From 83de0a84f919c52f8e6b56bb5ed6b80ac0f82ece Mon Sep 17 00:00:00 2001 From: Joel Denning Date: Fri, 13 Sep 2024 22:27:16 -0600 Subject: [PATCH 1/2] Add deprecation notice --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b1ee56c..0cf8ec4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # @node-loader/core -A configurable NodeJS loader that combines multiple other loaders into one. +A configurable NodeJS loader that combines multiple other loaders into one. Only works with + +## Deprecation Notice + +As of NodeJS 20, combining multiple loaders into one loader is possible via [chaining with the `--import` flag](https://nodejs.org/docs/latest-v20.x/api/module.html#chaining). It is recommended to switch to native NodeJS chaining. ## Motivation @@ -12,7 +16,7 @@ A configurable NodeJS loader that combines multiple other loaders into one. npm install --save @node-loader/core ``` -For NodeJS@<16.12, use `@node-loader/core@1`. For NodeJS@>=16.12, use `@node-loader/core@latest`. +For NodeJS@<16.12, use `@node-loader/core@1`. For NodeJS@>=16.12 but <20, use `@node-loader/core@latest`. For Node >=20, use [`--import` chaining](https://nodejs.org/docs/latest-v20.x/api/module.html#chaining) ## Usage From e7f5f247a69d586ba0ace5df1d6333ff35454fff Mon Sep 17 00:00:00 2001 From: Joel Denning Date: Fri, 13 Sep 2024 22:28:24 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0cf8ec4..a4131a2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # @node-loader/core -A configurable NodeJS loader that combines multiple other loaders into one. Only works with +A configurable NodeJS loader that combines multiple other loaders into one. ## Deprecation Notice