summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/dropzone.js
blob: e7b8a9dde9e9757647641624a85bb9ec71d61f1c (plain)
1
2
3
4
5
6
7
export async function createDropzone(el, opts) {
  const [{Dropzone}] = await Promise.all([
    import(/* webpackChunkName: "dropzone" */'dropzone'),
    import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
  ]);
  return new Dropzone(el, opts);
}