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