mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-23 18:29:09 +00:00
Import each module separately for the sake of lightweight browserify bundles
This commit is contained in:
parent
d3cb24582a
commit
b005b30769
1 changed files with 6 additions and 4 deletions
|
|
@ -1,5 +1,9 @@
|
|||
import Uppy from 'uppy/core'
|
||||
import { DragDrop, Progressbar, Tus10 } from 'uppy/plugins'
|
||||
// import Uppy from 'uppy/core'
|
||||
// import { DragDrop, Progressbar, Tus10 } from 'uppy/plugins'
|
||||
import Uppy from '../../../../src/core/Core.js'
|
||||
import DragDrop from '../../../../src/plugins/DragDrop.js'
|
||||
import Progressbar from '../../../../src/plugins/Progressbar.js'
|
||||
import Tus10 from '../../../../src/plugins/Tus10.js'
|
||||
|
||||
const uppyOne = new Uppy({autoProceed: true, debug: true})
|
||||
uppyOne
|
||||
|
|
@ -14,5 +18,3 @@ uppyTwo
|
|||
.use(Tus10, {endpoint: 'http://master.tus.io:8080/files/'})
|
||||
.use(Progressbar, {target: '#UppyDragDrop-Two .UppyDragDrop-progress'})
|
||||
.run()
|
||||
|
||||
// console.log(`Uppy ${uppyOne.type} loaded`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue