Skip to content

Commit f78ed1b

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 839b717 commit f78ed1b

File tree

10 files changed

+53
-1533
lines changed

10 files changed

+53
-1533
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)
File renamed without changes.

0 commit comments

Comments
 (0)