Skip to content

Commit

Permalink
Merge pull request #767 from medikoo/remove-unhandled-rejections-strip
Browse files Browse the repository at this point in the history
Do not remove unhandledRejection listeners as it breaks Serverless
  • Loading branch information
dnalborczyk committed Aug 5, 2019
2 parents 05dd367 + 5018283 commit ebd6c57
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/index.js
@@ -1,7 +1,3 @@
'use strict';

module.exports = require('./ServerlessOffline.js');

// Serverless exits with code 1 when a promise rejection is unhandled. Not AWS.
// Users can still use their own unhandledRejection event though.
process.removeAllListeners('unhandledRejection');

0 comments on commit ebd6c57

Please sign in to comment.