From 557dabb89f658638e777c328238d425ab2094412 Mon Sep 17 00:00:00 2001 From: Julien Ripouteau Date: Mon, 15 Jan 2024 19:10:42 +0100 Subject: [PATCH] fix: add `default` conditional export for lodash entrypoint Otherwise, when loaded through Vite, it will fail cause not able to resolve path See : https://github.com/vitejs/vite/issues/5579 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e8adb0b..82c11fd 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ ".": "./build/index.js", "./lodash": { "types": "./lodash/lodash.types.d.ts", - "node": "./build/lodash/main.cjs" + "node": "./build/lodash/main.cjs", + "default": "./build/lodash/main.cjs" }, "./assert": "./build/src/assert.js", "./string": "./build/src/string/main.js",