diff --git a/packages/tree-changes-hook/src/index.ts b/packages/tree-changes-hook/src/index.ts index 788a0e3..1379bec 100644 --- a/packages/tree-changes-hook/src/index.ts +++ b/packages/tree-changes-hook/src/index.ts @@ -1,5 +1,5 @@ import { useEffect, useRef } from 'react'; -import * as equal from 'fast-deep-equal'; +import equal from 'fast-deep-equal'; import treeChanges, { Data, KeyType, TreeChanges } from 'tree-changes'; export default function useTreeChanges(value: T) { diff --git a/packages/tree-changes-hook/tsconfig.json b/packages/tree-changes-hook/tsconfig.json index cb0eb5f..412be39 100644 --- a/packages/tree-changes-hook/tsconfig.json +++ b/packages/tree-changes-hook/tsconfig.json @@ -2,7 +2,8 @@ "extends": "@gilbarbara/tsconfig", "compilerOptions": { "outDir": "./lib", - "target": "es5" + "target": "es5", + "esModuleInterop": true }, "include": ["src/**/*"], "exclude": ["node_modules", "**/*.spec.ts"] diff --git a/packages/tree-changes/src/helpers.ts b/packages/tree-changes/src/helpers.ts index 00e1c37..3ecb2ef 100644 --- a/packages/tree-changes/src/helpers.ts +++ b/packages/tree-changes/src/helpers.ts @@ -1,4 +1,4 @@ -import * as equal from 'fast-deep-equal'; +import equal from 'fast-deep-equal'; import is from 'is-lite'; import { CompareValuesOptions, Data, Key, Options, ValidTypes, Value } from './types'; diff --git a/packages/tree-changes/src/index.ts b/packages/tree-changes/src/index.ts index 0192538..f227147 100644 --- a/packages/tree-changes/src/index.ts +++ b/packages/tree-changes/src/index.ts @@ -1,4 +1,4 @@ -import * as equal from 'fast-deep-equal'; +import equal from 'fast-deep-equal'; import is from 'is-lite'; import { compareNumbers, compareValues, getIterables, includesOrEqualsTo, nested } from './helpers'; diff --git a/packages/tree-changes/tsconfig.json b/packages/tree-changes/tsconfig.json index cb0eb5f..412be39 100644 --- a/packages/tree-changes/tsconfig.json +++ b/packages/tree-changes/tsconfig.json @@ -2,7 +2,8 @@ "extends": "@gilbarbara/tsconfig", "compilerOptions": { "outDir": "./lib", - "target": "es5" + "target": "es5", + "esModuleInterop": true }, "include": ["src/**/*"], "exclude": ["node_modules", "**/*.spec.ts"]