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