pxt icon indicating copy to clipboard operation
pxt copied to clipboard

tree shaking doesn't get rid of dead hex literal

Open tballmsft opened this issue 4 years ago • 1 comments

  • see https://makecode.microbit.org/_fY9cVRgEp1VD and the compiler error on download
  • the variable rocketJourney in animations.ts (let clause) is not used anywhere in the code.
  • if you comment out this line, the project builds.
  • if you uncomment the line, the project fails

The same problem occurs if you replace "let" with "const" in animations.ts

tballmsft avatar Dec 04 '20 16:12 tballmsft

isSideEffectfulInitializer in emitter.ts seems wrong; will fix

mmoskal avatar Dec 04 '20 17:12 mmoskal