From 8b60679574eb60a3c8109ffd389b64b86a167e72 Mon Sep 17 00:00:00 2001 From: Ahn Date: Sat, 16 Oct 2021 08:00:25 +0200 Subject: [PATCH] fix: correct `lodash` import (#2978) Closes #2977 --- src/__mocks__/thing1.ts | 2 +- src/__mocks__/thing2.ts | 2 +- src/compiler/ts-compiler.ts | 2 +- src/utils/backports.spec.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/__mocks__/thing1.ts b/src/__mocks__/thing1.ts index a6503d6340..a15305ce0d 100644 --- a/src/__mocks__/thing1.ts +++ b/src/__mocks__/thing1.ts @@ -1,4 +1,4 @@ -import camelCase from 'lodash/camelCase' +import camelCase from 'lodash.camelcase' import { getBar } from './thing2' diff --git a/src/__mocks__/thing2.ts b/src/__mocks__/thing2.ts index d898bcda58..08b84b5570 100644 --- a/src/__mocks__/thing2.ts +++ b/src/__mocks__/thing2.ts @@ -1,4 +1,4 @@ -import camelCase from 'lodash/camelCase' +import camelCase from 'lodash.camelcase' export function getBar(msg: string): string { return camelCase(msg) + 'foo' diff --git a/src/compiler/ts-compiler.ts b/src/compiler/ts-compiler.ts index 05b9c91502..5a2956ba74 100644 --- a/src/compiler/ts-compiler.ts +++ b/src/compiler/ts-compiler.ts @@ -1,7 +1,7 @@ import { basename, normalize } from 'path' import { LogContexts, Logger, LogLevels } from 'bs-logger' -import memoize from 'lodash/memoize' +import memoize from 'lodash.memoize' import type { EmitOutput, LanguageService, diff --git a/src/utils/backports.spec.ts b/src/utils/backports.spec.ts index 1dfe486116..2824a6fd20 100644 --- a/src/utils/backports.spec.ts +++ b/src/utils/backports.spec.ts @@ -1,7 +1,7 @@ import { inspect } from 'util' import { testing } from 'bs-logger' -import set from 'lodash/set' +import set from 'lodash.set' import { backportJestConfig } from './backports'