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