Skip to content

Commit c99fdc6

Browse files
committed
refactor!: drop CommonJS distribution from package
BREAKING CHANGE: removes the CommonJS distribution from the package Signed-off-by: Jon Koops <[email protected]>
1 parent fec3ddd commit c99fdc6

File tree

9 files changed

+52
-1532
lines changed

9 files changed

+52
-1532
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,6 @@ console.log(files);
118118
> [!NOTE]
119119
> The above is experimental and subject to change.
120120
121-
### CommonJS
122-
123-
Convert a `DragEvent` to File objects:
124-
125-
```js
126-
const {fromEvent} = require('file-selector');
127-
128-
document.addEventListener('drop', async (event) => {
129-
const files = await fromEvent(event);
130-
console.log(files);
131-
});
132-
```
133-
134121
## Browser Support
135122
Most browser support basic File selection with drag 'n' drop or file input:
136123
* [File API](https://developer.mozilla.org/en-US/docs/Web/API/File#Browser_compatibility)

0 commit comments

Comments
 (0)