forked from Shiloh/githaven
bb71ceeeb2
* clean up async/await, and sort init calls in `index.js * use `const _promise` to indicate that we do not need await an async function
9 lines
308 B
JavaScript
9 lines
308 B
JavaScript
export default async function createDropzone(el, opts) {
|
|
const [{Dropzone}] = await Promise.all([
|
|
import(/* webpackChunkName: "dropzone" */'dropzone'),
|
|
import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
|
|
]);
|
|
Dropzone.autoDiscover = false;
|
|
return new Dropzone(el, opts);
|
|
}
|