The module has been improved and moved under the @ungap
umbrella.
https://github.com/ungap/event-target
The EventTarget Class Polyfill.
- 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'
)
Every. JavaScript. Engine.