Skip to content

Commit

Permalink
fix: add default conditional export for lodash entrypoint
Browse files Browse the repository at this point in the history
Otherwise, when loaded through Vite, it will fail cause not able to resolve path

See : vitejs/vite#5579
  • Loading branch information
Julien-R44 committed Jan 15, 2024
1 parent 4e6b090 commit 557dabb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 557dabb

Please sign in to comment.