From 83fc452797b7f71199ebc63553d9ff076ca5f11a Mon Sep 17 00:00:00 2001 From: orta Date: Wed, 21 Dec 2016 14:04:47 -0500 Subject: [PATCH] Adds support for ES6 default module import syntax --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 881df98..0850121 100644 --- a/index.js +++ b/index.js @@ -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;