mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 00:47:03 +02:00
refactor(v2): remove duplicated lodash dependencies and import only what needed (#4361)
Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
bac512bc63
commit
e6261af642
19 changed files with 22 additions and 142 deletions
|
@ -15,7 +15,7 @@
|
|||
"dependencies": {
|
||||
"file-loader": "^6.2.0",
|
||||
"loader-utils": "^1.2.3",
|
||||
"lodash.sortby": "^4.7.0",
|
||||
"lodash": "^4.17.20",
|
||||
"node-vibrant": "^3.1.5",
|
||||
"sharp": "^0.27.1"
|
||||
},
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
// @ts-check
|
||||
|
||||
const sortBy = require('lodash.sortby');
|
||||
const {sortBy} = require('lodash');
|
||||
|
||||
/**
|
||||
* toBase64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue