|
|
@ -208,15 +208,12 @@ export default class Bundle { |
|
|
|
|
|
|
|
declaration.name = getSafeName( declaration.name ); |
|
|
|
}); |
|
|
|
// special case - for `import * as Foo`, we need to make sure that Foo
|
|
|
|
// gets its own variable because it will eventually be rendered as
|
|
|
|
// `var Foo = Object.freeze(...)`
|
|
|
|
forOwn( module.imports, ( importee, importeeName ) => { |
|
|
|
if ( importee.name === '*' ) { |
|
|
|
delete module.imports[ importeeName ]; |
|
|
|
module.imports[ getSafeName(importeeName) ] = importee; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// deconflict reified namespaces
|
|
|
|
const namespace = module.namespace(); |
|
|
|
if ( namespace.needsNamespaceBlock ) { |
|
|
|
namespace.name = getSafeName( namespace.name ); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
this.scope.deshadow( toDeshadow ); |
|
|
|