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

pull/7738/head
Conduitry 9 years ago
parent 2fea782240
commit f8e5353f83

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

Loading…
Cancel
Save