Skip to content

Commit

Permalink
fix: rollup build error: Cannot call a namespace ('writeText')
Browse files Browse the repository at this point in the history
  • Loading branch information
brickspert committed Aug 19, 2019
1 parent 1d5cd10 commit b3e672b
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 useRefMounted from './useRefMounted';
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 b3e672b

Please sign in to comment.