Fix Dropzone following #15315 (#15353)

* Fix Dropzone following #15315

#15315 appears to have caused a change in the way Dropzone is imported - and it
now produces a module rather than the constructor.

This PR rather hackily just adds another Dropzone call to the result.

Signed-off-by: Andrew Thornton <[email protected]>

* use destructured export

Co-authored-by: silverwind <[email protected]>
Co-authored-by: 6543 <[email protected]>
This commit is contained in:
zeripath
2021-04-09 10:32:30 +08:00
committed by GitHub
co-authored by silverwind 6543
parent 147826a577
commit 7088bcf61b
+1 -1
View File
@@ -1,5 +1,5 @@
export default async function createDropzone(el, opts) {
const [{default: Dropzone}] = await Promise.all([
const [{Dropzone}] = await Promise.all([
import(/* webpackChunkName: "dropzone" */'dropzone'),
import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
]);