From 114be0fd9b16d090839c22a5334502ac893bb459 Mon Sep 17 00:00:00 2001 From: qiang Date: Mon, 9 Jun 2025 14:38:36 +0800 Subject: [PATCH] chore: add node-linker=hoisted --- .npmrc | 1 + README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/.npmrc b/.npmrc index bf2e764..5e2feb9 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ shamefully-hoist=true +node-linker=hoisted diff --git a/README.md b/README.md index 2f0687a..a2fa3fd 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ > Since the [dayjs](https://github.com/iamkun/dayjs) used internally by element-plus is not a [JavaScript modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), in order to ensure that it can be converted into a JavaScript modules before startup, you need to add a `.npmrc` file to the root directory of the project and add the following configuration: > ``` > shamefully-hoist=true +> node-linker=hoisted > ``` > Or install the `dayjs` dependency separately.