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 ) {