Awesome
event-target
Deprecated
The module has been improved and moved under the @ungap
umbrella.
https://github.com/ungap/event-target
The EventTarget Class Polyfill.
How to use it:
- via CDN, as global variable:
https://unpkg.com/event-target@latest/min.js
- ponyfill via ESM, as external module:
https://unpkg.com/event-target@latest/esm/index.js
- ponyfill via CJS:
const EventTarget = require('event-target').default;
- ponyfill via bundlers/transpilers:
import EventTarget from 'event-target';
<sup><sub>( orfrom 'event-target/esm'
)</sub></sup>
Compatibility:
Every. JavaScript. Engine.