From f8e5353f831717917ac4f3077e86264f952ac31e Mon Sep 17 00:00:00 2001 From: Conduitry Date: Tue, 4 Apr 2017 17:13:12 -0400 Subject: [PATCH] recognize component name as a global identifier to be avoided (#451) --- src/generators/Generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators/Generator.js b/src/generators/Generator.js index 370771eb39..272e843142 100644 --- a/src/generators/Generator.js +++ b/src/generators/Generator.js @@ -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 ) {