Skip to content

Commit

Permalink
fix: bad event polifilly
Browse files Browse the repository at this point in the history
Fixes ionic-team#16. This allows `const EventEmitter = require('events')` to work as intended
  • Loading branch information
robertsLando authored Aug 9, 2022
1 parent 9b5fe1a commit e9281a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polyfills/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function EventEmitter() {
EventEmitter.init.call(this);
}
export default EventEmitter;
export {EventEmitter};
export EventEmitter;

// nodejs oddity
// require('events') === require('events').EventEmitter
Expand Down

0 comments on commit e9281a8

Please sign in to comment.