From 769666ae25a7388cd97105a020a00f00fbd55bc5 Mon Sep 17 00:00:00 2001 From: xcy960815 <35754235+xcy960815@users.noreply.github.com> Date: Wed, 23 Aug 2023 16:05:27 +0800 Subject: [PATCH] fix(compile): require of ES Module bug in ssr (#5450) * fix(compile): require of ES Module bug in ssr * fix(compile): require of ES Module bug in ssr --------- Co-authored-by: Opera --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package.json b/package.json index c3cda54765..3d94312585 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,13 @@ "main": "lib/index.js", "module": "esm/index.js", "types": "lib/index.d.ts", + "exports": { + ".": { + "types": "./lib/index.d.ts", + "import": "./esm/index.js", + "require": "./lib/index.js" + } + }, "files": [ "src", "lib",