Skip to content

Commit c989e3f

Browse files
committed
fix: shrink bundle size
1 parent 5de1acc commit c989e3f

7 files changed

Lines changed: 10 additions & 6 deletions

File tree

admin/src/components/ActionButtons/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import styled from 'styled-components';
33
import { useDispatch, useSelector } from 'react-redux';
4-
import { isEmpty } from 'lodash';
4+
import isEmpty from 'lodash/isEmpty';
55
import { Button, Typography } from '@strapi/design-system';
66
import { Map } from 'immutable';
77
import { getFetchClient, useNotification } from '@strapi/strapi/admin';

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@strapi/design-system": "2.0.0-rc.11",
4747
"@strapi/icons": "2.0.0-rc.11",
4848
"@strapi/strapi": "5.2.0",
49+
"@strapi/admin": "5.2.0",
4950
"@strapi/utils": "5.2.0",
5051
"chalk": "^4.1.2",
5152
"cli-table": "^0.3.6",

server/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Command } from 'commander';
55
import Table from 'cli-table';
66
import chalk from 'chalk';
77
import inquirer from 'inquirer';
8-
import { isEmpty } from 'lodash';
8+
import isEmpty from 'lodash/isEmpty';
99
import { createStrapi, compileStrapi } from '@strapi/strapi';
1010
import gitDiff from 'git-diff';
1111

server/config/type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isEmpty } from 'lodash';
1+
import isEmpty from 'lodash/isEmpty';
22
import { logMessage, sanitizeConfig, dynamicSort, noLimit, getCombinedUid, getCombinedUidWhereFilter, getUidParamsFromName } from '../utils';
33
import { difference, same } from '../utils/getArrayDiff';
44
import queryFallBack from '../utils/queryFallBack';

server/controllers/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
import fs from 'fs';
4-
import { isEmpty } from 'lodash';
4+
import isEmpty from 'lodash/isEmpty';
55

66
/**
77
* Main controllers for config import/export.

server/services/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
import { isEmpty } from 'lodash';
3+
import isEmpty from 'lodash/isEmpty';
44
import fs from 'fs';
55
import util from 'util';
66
import childProcess from "child_process";

server/utils/getObjectDiff.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
'use strict';
22

3-
import { transform, isEqual, isArray, isObject } from 'lodash';
3+
import transform from 'lodash/transform';
4+
import isEqual from 'lodash/isEqual';
5+
import isArray from 'lodash/isArray';
6+
import isObject from 'lodash/isObject';
47

58
/**
69
* Find difference between two objects

0 commit comments

Comments
 (0)