fix: shrink bundle size
parent
5de1accc77
commit
c989e3f371
|
@ -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';
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue