소스 검색

@uppy/tus: fix broken import (#3729)

Antoine du Hamel 2 년 전
부모
커밋
b5d55b4912
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      packages/@uppy/tus/src/getFingerprint.js
  2. 1 1
      packages/@uppy/tus/src/index.js

+ 1 - 1
packages/@uppy/tus/src/getFingerprint.js

@@ -1,4 +1,4 @@
-import tus from 'tus-js-client'
+import * as tus from 'tus-js-client'
 
 function isCordova () {
   return typeof window !== 'undefined' && (

+ 1 - 1
packages/@uppy/tus/src/index.js

@@ -1,5 +1,5 @@
 import BasePlugin from '@uppy/core/lib/BasePlugin'
-import tus from 'tus-js-client'
+import * as tus from 'tus-js-client'
 import { Provider, RequestClient, Socket } from '@uppy/companion-client'
 import emitSocketProgress from '@uppy/utils/lib/emitSocketProgress'
 import getSocketHost from '@uppy/utils/lib/getSocketHost'