Skip to content

Commit

Permalink
Adds support for ES6 default module import syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Dec 21, 2016
1 parent 8e7ae24 commit 83fc452
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ module.exports.ObjectID = mongodb.ObjectID
module.exports.ObjectId = mongodb.ObjectId
module.exports.Symbol = mongodb.Symbol
module.exports.Timestamp = mongodb.Timestamp

// Add support for default ES6 module imports
module.exports.default = module.exports;

0 comments on commit 83fc452

Please sign in to comment.