2020-03-07 16:06:15 -05:00
|
|
|
export default async function createDropzone(el, opts) {
|
2020-03-11 15:34:54 -04:00
|
|
|
const [{default: Dropzone}] = await Promise.all([
|
2020-03-07 16:06:15 -05:00
|
|
|
import(/* webpackChunkName: "dropzone" */'dropzone'),
|
|
|
|
import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
|
|
|
|
]);
|
|
|
|
|
|
|
|
Dropzone.autoDiscover = false;
|
|
|
|
return new Dropzone(el, opts);
|
|
|
|
}
|