Skip to content

Commit

Permalink
[zero-runtime] Use lodash instead of its subpackages (mui#40868)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak authored Jan 31, 2024
1 parent 1c13e7e commit e526ccf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 48 deletions.
8 changes: 2 additions & 6 deletions packages/zero-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,15 @@
"@linaria/tags": "^5.0.2",
"@linaria/utils": "^5.0.2",
"@mui/system": "workspace:^",
"lodash.merge": "^4.6.2",
"lodash.set": "^4.3.2",
"lodash.get": "^4.4.2",
"lodash": "^4.17.21",
"stylis": "^4.2.0"
},
"devDependencies": {
"@types/babel__core": "^7.20.5",
"@types/babel__helper-module-imports": "^7.18.3",
"@types/babel__helper-plugin-utils": "^7.10.3",
"@types/cssesc": "^3.0.2",
"@types/lodash.get": "^4.4.9",
"@types/lodash.merge": "^4.6.9",
"@types/lodash.set": "^4.3.9",
"@types/lodash": "^4.14.202",
"@types/node": "^18.19.10",
"@types/react": "^18.2.48",
"@types/stylis": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/zero-runtime/src/processors/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
import type { Replacements, Rules } from '@linaria/utils';
import { ValueType } from '@linaria/utils';
import type { CSSInterpolation } from '@emotion/css';
import deepMerge from 'lodash.merge';
import deepMerge from 'lodash/merge';
import BaseProcessor from './base-processor';
import type { IOptions } from './styled';
import { cache, css } from '../utils/emotion';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { declare } from '@babel/helper-plugin-utils';
import defaultSxConfig from '@mui/system/styleFunctionSx/defaultSxConfig';
import get from 'lodash.get';
import get from 'lodash/get';
import type { PluginCustomOptions } from './cssFnValueToVariable';

type Theme = { [key: 'unstable_sxConfig' | string]: string | number | Theme };
Expand Down
47 changes: 7 additions & 40 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e526ccf

Please sign in to comment.