esbuild: TypeError: Illegal invocation on --minify-syntax

Hi,

I am using esbuild to bundle the output of a large scala.js program. With --minify-syntax turned on, I see TypeError: Illegal invocation on various places. One on react requestAnimation, another on console.log. It is quite difficult to come up with a minimal reproduce. I am working on one but wonder if you have an idea on what to do.

Thanks

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Thanks for confirming. This fix was just published in esbuild version 0.6.6.

Thanks for the reproduction case. It looks like it was a different but related issue. I’ll push a fix for this sometime today.