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