mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Set __esModule flag on import(...) namespace objects.
This small tweak would have made this commit unecessary:
1fac2ff3c1
Because we've already done the translation from CommonJS module.exports to
ES2015 namespace object, this flag should always be true.
This commit is contained in:
@@ -178,5 +178,12 @@ function getNamespace(module, id) {
|
||||
}
|
||||
});
|
||||
|
||||
// This helps with Babel interop, since we're not just returning the
|
||||
// module.exports object.
|
||||
Object.defineProperty(namespace, "__esModule", {
|
||||
value: true,
|
||||
enumerable: false
|
||||
});
|
||||
|
||||
return namespace;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user