Skip to content

Commit 5cc7553

Browse files
Merge pull request #1446 from thematan/import-lodash-efficiently
pref():import lodash efficiently
2 parents 42f09a8 + 5f267d1 commit 5cc7553

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/config.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { Inject, Injectable, Optional } from '@nestjs/common';
22
import { isUndefined } from '@nestjs/common/utils/shared.utils';
3-
import { get, has, set } from 'lodash';
3+
import get from 'lodash/get';
4+
import has from 'lodash/has';
5+
import set from 'lodash/set';
46
import {
57
CONFIGURATION_TOKEN,
68
VALIDATED_ENV_PROPNAME,

lib/utils/merge-configs.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { set } from 'lodash';
1+
import set from 'lodash/set';
22

33
export function mergeConfigObject(
44
host: Record<string, any>,

0 commit comments

Comments
 (0)