fix: shrink bundle size

pull/157/head
Boaz Poolman 2024-11-06 12:38:28 +01:00
parent 5de1accc77
commit c989e3f371
7 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,7 @@
import React from 'react';
import styled from 'styled-components';
import { useDispatch, useSelector } from 'react-redux';
import { isEmpty } from 'lodash';
import isEmpty from 'lodash/isEmpty';
import { Button, Typography } from '@strapi/design-system';
import { Map } from 'immutable';
import { getFetchClient, useNotification } from '@strapi/strapi/admin';

View File

@ -46,6 +46,7 @@
"@strapi/design-system": "2.0.0-rc.11",
"@strapi/icons": "2.0.0-rc.11",
"@strapi/strapi": "5.2.0",
"@strapi/admin": "5.2.0",
"@strapi/utils": "5.2.0",
"chalk": "^4.1.2",
"cli-table": "^0.3.6",

View File

@ -5,7 +5,7 @@ import { Command } from 'commander';
import Table from 'cli-table';
import chalk from 'chalk';
import inquirer from 'inquirer';
import { isEmpty } from 'lodash';
import isEmpty from 'lodash/isEmpty';
import { createStrapi, compileStrapi } from '@strapi/strapi';
import gitDiff from 'git-diff';

View File

@ -1,4 +1,4 @@
import { isEmpty } from 'lodash';
import isEmpty from 'lodash/isEmpty';
import { logMessage, sanitizeConfig, dynamicSort, noLimit, getCombinedUid, getCombinedUidWhereFilter, getUidParamsFromName } from '../utils';
import { difference, same } from '../utils/getArrayDiff';
import queryFallBack from '../utils/queryFallBack';

View File

@ -1,7 +1,7 @@
'use strict';
import fs from 'fs';
import { isEmpty } from 'lodash';
import isEmpty from 'lodash/isEmpty';
/**
* Main controllers for config import/export.

View File

@ -1,6 +1,6 @@
'use strict';
import { isEmpty } from 'lodash';
import isEmpty from 'lodash/isEmpty';
import fs from 'fs';
import util from 'util';
import childProcess from "child_process";

View File

@ -1,6 +1,9 @@
'use strict';
import { transform, isEqual, isArray, isObject } from 'lodash';
import transform from 'lodash/transform';
import isEqual from 'lodash/isEqual';
import isArray from 'lodash/isArray';
import isObject from 'lodash/isObject';
/**
* Find difference between two objects