Skip to content

Commit

Permalink
Register lodash as dependency
Browse files Browse the repository at this point in the history
Without this change, the dist files include the entire lodash source
  • Loading branch information
jorrit committed Jan 29, 2025
1 parent 8b00015 commit e682c67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@
"@radix-ui/react-tooltip": "1.0.7",
"@strapi/ui-primitives": "2.0.0-rc.14",
"@uiw/react-codemirror": "4.22.2",
"lodash": "4.17.21",
"react-remove-scroll": "2.5.10"
},
"devDependencies": {
"@strapi/icons": "2.0.0-rc.14",
"@strapi/pack-up": "5.0.0",
"@types/lodash": "^4.17.15",
"jest": "29.7.0",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down
11 changes: 10 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4262,8 +4262,10 @@ __metadata:
"@strapi/icons": 2.0.0-rc.14
"@strapi/pack-up": 5.0.0
"@strapi/ui-primitives": 2.0.0-rc.14
"@types/lodash": ^4.17.15
"@uiw/react-codemirror": 4.22.2
jest: 29.7.0
lodash: 4.17.21
react: 18.3.1
react-dom: 18.3.1
react-remove-scroll: 2.5.10
Expand Down Expand Up @@ -5271,6 +5273,13 @@ __metadata:
languageName: node
linkType: hard

"@types/lodash@npm:^4.17.15":
version: 4.17.15
resolution: "@types/lodash@npm:4.17.15"
checksum: 5037564154411f4ac0b187b914031c150520a7ca037dea007f774b7123c97c0da55b2e41ae81dc1bc80ff09e8d6a236455ea676d5062af12c592b8e81baec7bf
languageName: node
linkType: hard

"@types/mdast@npm:^3.0.0":
version: 3.0.15
resolution: "@types/mdast@npm:3.0.15"
Expand Down Expand Up @@ -12415,7 +12424,7 @@ __metadata:
languageName: node
linkType: hard

"lodash@npm:^4.17.20, lodash@npm:^4.17.21":
"lodash@npm:4.17.21, lodash@npm:^4.17.20, lodash@npm:^4.17.21":
version: 4.17.21
resolution: "lodash@npm:4.17.21"
checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7
Expand Down

0 comments on commit e682c67

Please sign in to comment.