mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +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
|
@ -9,8 +9,7 @@ import chalk from 'chalk';
|
|||
import path from 'path';
|
||||
import matter from 'gray-matter';
|
||||
import {createHash} from 'crypto';
|
||||
import camelCase from 'lodash.camelcase';
|
||||
import kebabCase from 'lodash.kebabcase';
|
||||
import {camelCase, kebabCase, mapValues} from 'lodash';
|
||||
import escapeStringRegexp from 'escape-string-regexp';
|
||||
import fs from 'fs-extra';
|
||||
import {URL} from 'url';
|
||||
|
@ -22,7 +21,6 @@ import {
|
|||
|
||||
// @ts-expect-error: no typedefs :s
|
||||
import resolvePathnameUnsafe from 'resolve-pathname';
|
||||
import {mapValues} from 'lodash';
|
||||
import areIntlLocalesSupported from 'intl-locales-supported';
|
||||
|
||||
const fileHash = new Map();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue