recognize component name as a global identifier to be avoided (#451)

pull/464/head
Conduitry 8 years ago
parent 79c456333c
commit e76f4fe6cd

@ -39,7 +39,7 @@ export default class Generator {
// Svelte's builtin `import { get, ... } from 'svelte/shared.js'`;
this.importedNames = new Set();
this._aliases = new Map();
this._usedNames = new Set();
this._usedNames = new Set( [ name ] );
}
addSourcemapLocations ( node ) {

Loading…
Cancel
Save