Skip to content

Commit

Permalink
Merge pull request #327 from orta/module_import
Browse files Browse the repository at this point in the history
Adds support for ES6 default module import syntax
  • Loading branch information
saintedlama authored Aug 8, 2017
2 parents ed2040a + e4b7a1c commit 337449d
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 337449d

Please sign in to comment.