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';
( orfrom 'event-target/esm'
)
Compatibility:
Every. JavaScript. Engine.