leopard-js / sb-edit

Javascript library for manipulating Scratch project files
MIT License
54 stars 15 forks source link

Does not rename objects with the same name as an import #60

Closed Nixinova closed 1 year ago

Nixinova commented 3 years ago

I have a Scratch project with object "Sound" which interferes with the import "Sound".

import {
  Sprite,
  Trigger,
  Watcher,
  Costume,
  Color,
  Sound
} from "https://unpkg.com/leopard@^1/dist/index.esm.js";

export default class Sound extends Sprite {
//                   ^^^^^ Uncaught SyntaxError: Identifier 'Sound' has already been declared