Skip to content

Commit

Permalink
fix: allow import default for ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich authored Aug 19, 2019
2 parents b93bb0a + b3e672b commit bd3a062
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/useCopyToClipboard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as writeText from 'copy-to-clipboard';
import writeText from 'copy-to-clipboard';
import { useCallback } from 'react';
import useMountedState from './useMountedState';
import useSetState from './useSetState';
Expand Down
2 changes: 1 addition & 1 deletion src/useDeepCompareEffect.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DependencyList, EffectCallback, useEffect, useRef } from 'react';
import * as isEqual from 'react-fast-compare';
import isEqual from 'react-fast-compare';

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

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"rootDir": "src",
"sourceMap": false,
"strict": true,
"esModuleInterop": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
Expand Down

0 comments on commit bd3a062

Please sign in to comment.