2020-03-08 02:36:15 +05:30
|
|
|
export default async function createDropzone(el, opts) {
|
2021-04-09 08:02:30 +05:30
|
|
|
const [{Dropzone}] = await Promise.all([
|
2020-03-08 02:36:15 +05:30
|
|
|
import(/* webpackChunkName: "dropzone" */'dropzone'),
|
|
|
|
import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
|
|
|
|
]);
|
|
|
|
|
|
|
|
Dropzone.autoDiscover = false;
|
|
|
|
return new Dropzone(el, opts);
|
|
|
|
}
|