MM-56985 Remove babel-plugin-lodash (#26295)

Этот коммит содержится в:
Harrison Healey
2024-02-26 16:47:26 -05:00
коммит произвёл GitHub
родитель 48117fb21f
Коммит 0d2053aa5c
45 изменённых файлов: 52 добавлений и 61 удалений

Просмотреть файл

@@ -1,7 +1,8 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {debounce, isEqual} from 'lodash';
import debounce from 'lodash/debounce';
import isEqual from 'lodash/isEqual';
import React from 'react';
import {FormattedMessage} from 'react-intl';

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {debounce} from 'lodash';
import debounce from 'lodash/debounce';
import React from 'react';
import {FormattedMessage} from 'react-intl';

Просмотреть файл

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
import classNames from 'classnames';
import {isNil} from 'lodash';
import isNil from 'lodash/isNil';
import React from 'react';
import {FormattedMessage} from 'react-intl';

Просмотреть файл

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
import {shallow} from 'enzyme';
import {range} from 'lodash';
import range from 'lodash/range';
import React from 'react';
import type {UserProfile} from '@mattermost/types/users';

Просмотреть файл

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
import {shallow} from 'enzyme';
import {range} from 'lodash';
import range from 'lodash/range';
import React from 'react';
import {TestHelper} from 'utils/test_helper';

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {debounce} from 'lodash';
import debounce from 'lodash/debounce';
import React from 'react';
import {FormattedMessage, defineMessages} from 'react-intl';

Просмотреть файл

@@ -1,7 +1,8 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {uniq, difference} from 'lodash';
import difference from 'lodash/difference';
import uniq from 'lodash/uniq';
import React from 'react';
import {FormattedMessage} from 'react-intl';

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {cloneDeep} from 'lodash';
import cloneDeep from 'lodash/cloneDeep';
import React from 'react';
import {FormattedMessage} from 'react-intl';

Просмотреть файл

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
import classNames from 'classnames';
import {isNil} from 'lodash';
import isNil from 'lodash/isNil';
import React from 'react';
import {FormattedMessage, defineMessages} from 'react-intl';
import type {MessageDescriptor} from 'react-intl';

Просмотреть файл

@@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {cloneDeep} from 'lodash';
import cloneDeep from 'lodash/cloneDeep';
import React from 'react';
import {FormattedMessage} from 'react-intl';

Просмотреть файл

@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
import classNames from 'classnames';
import {noop} from 'lodash';
import noop from 'lodash/noop';
import React, {useEffect, useState} from 'react';
import {FormattedMessage, defineMessage, useIntl} from 'react-intl';
import {useDispatch, useSelector} from 'react-redux';