mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-20 12:37:01 +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
|
@ -36,12 +36,7 @@
|
|||
"import-fresh": "^3.2.2",
|
||||
"joi": "^17.4.0",
|
||||
"loader-utils": "^1.2.3",
|
||||
"lodash": "^4.17.19",
|
||||
"lodash.flatmap": "^4.5.0",
|
||||
"lodash.groupby": "^4.6.0",
|
||||
"lodash.pick": "^4.4.0",
|
||||
"lodash.pickby": "^4.6.0",
|
||||
"lodash.sortby": "^4.6.0",
|
||||
"lodash": "^4.17.20",
|
||||
"remark-admonitions": "^1.2.1",
|
||||
"shelljs": "^0.8.4",
|
||||
"utility-types": "^3.10.0",
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import flatMap from 'lodash.flatmap';
|
||||
import fs from 'fs-extra';
|
||||
import importFresh from 'import-fresh';
|
||||
import {
|
||||
|
@ -18,7 +17,7 @@ import {
|
|||
SidebarItemCategory,
|
||||
SidebarItemType,
|
||||
} from './types';
|
||||
import {mapValues, flatten, difference} from 'lodash';
|
||||
import {mapValues, flatten, flatMap, difference} from 'lodash';
|
||||
import {getElementsAround} from '@docusaurus/utils';
|
||||
|
||||
type SidebarItemCategoryJSON = SidebarItemBase & {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue