diff --git a/src/Module/index.js b/src/Module/index.js index b8f38bf..4c00b90 100644 --- a/src/Module/index.js +++ b/src/Module/index.js @@ -21,8 +21,6 @@ export default class Module { }); this.analyse(); - - this.deconflict(); } analyse () { @@ -141,10 +139,6 @@ export default class Module { return has( this.canonicalNames, name ) ? this.canonicalNames[ name ] : name; } - deconflict () { - - } - define ( name ) { // shortcut cycles. TODO this won't work everywhere... if ( has( this.definitionPromises, name ) ) { @@ -172,13 +166,6 @@ export default class Module { module.suggestDefaultName( importDeclaration.localName ); } - // const globalName = module.nameReplacements[ exportDeclaration.localName ]; - // if ( globalName ) { - // this.rename( importDeclaration.localName, globalName, true ); - // } else { - // module.rename( exportDeclaration.localName, importDeclaration.localName ); - // } - return module.define( exportDeclaration.localName ); }); } @@ -269,27 +256,4 @@ export default class Module { this.defaultExportName = name; } } - - // rename ( name, replacement, force ) { - // if ( has( this.nameReplacements, name ) ) { - // throw new Error( 'Cannot rename an identifier twice' ); - // } - - // if ( !force ) { - // replacement = this.bundle.getSafeReplacement( replacement, this ); - // } - - // if ( name === replacement ) { - // return; - // } - - // console.log( 'renamining %s : %s -> %s (%s)', this.relativePath, name, replacement, force ); - - // const index = this.definedNames.indexOf( name ); - // if ( ~index ) { - // this.definedNames[ index ] = replacement; - // } - - // this.nameReplacements[ name ] = replacement; - // } } \ No newline at end of file diff --git a/test/samples/object-properties/_config.js b/test/samples/object-properties/_config.js index 18fd1eb..40fd687 100644 --- a/test/samples/object-properties/_config.js +++ b/test/samples/object-properties/_config.js @@ -1,4 +1,3 @@ module.exports = { - description: 'includes object properties in definitions', - // solo: true + description: 'includes object properties in definitions' }; \ No newline at end of file