Skip to content

Commit bd3a062

Browse files
authored
fix: allow import default for ESM
2 parents b93bb0a + b3e672b commit bd3a062

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/useCopyToClipboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as writeText from 'copy-to-clipboard';
1+
import writeText from 'copy-to-clipboard';
22
import { useCallback } from 'react';
33
import useMountedState from './useMountedState';
44
import useSetState from './useSetState';

src/useDeepCompareEffect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DependencyList, EffectCallback, useEffect, useRef } from 'react';
2-
import * as isEqual from 'react-fast-compare';
2+
import isEqual from 'react-fast-compare';
33

44
const isPrimitive = (val: any) => val !== Object(val);
55

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"rootDir": "src",
1010
"sourceMap": false,
1111
"strict": true,
12+
"esModuleInterop": true,
1213
"noUnusedLocals": true,
1314
"noUnusedParameters": true,
1415
"noImplicitReturns": true,

0 commit comments

Comments
 (0)