@ -288,7 +288,7 @@ export default class Module {
// bind the name to the other module's reference.
this.allExportsFrom.forEach( module => {
module.exports.getNames().forEach( name => {
if ( !this.exports.defines( name ) ) {
if ( name !== 'default' && !this.exports.defines( name ) ) {
this.exports.bind( name, module.exports.reference( name ) );
}
});
@ -2,10 +2,8 @@ define(['exports'], function (exports) { 'use strict';
const a = 1;
const b = 2;
var internal = 42;
exports.a = a;
exports.b = b;
exports['default'] = internal;
@ -2,8 +2,6 @@
@ -1,6 +1,4 @@
export { a, b };
export default internal;
@ -2,10 +2,8 @@
})((this.exposedInternals = {}));
@ -6,10 +6,8 @@
}));