bolt-cep icon indicating copy to clipboard operation
bolt-cep copied to clipboard

Array destructuring transpiles into incompatible code

Open timhaywood opened this issue 3 years ago • 0 comments

Unfortunetly, babel (purposefully) transpiles array destructuring into code that uses Array.isArray, even if that's not available in the target environment.

More info in this issue on the babel repo: https://github.com/babel/babel/issues/11195

Don't expect a fix or anything, just wanted to call it out in case you hadn't run across it and wanted to call it out as a known limiation in the README or something.

I've just replaced the destructuring in my scripts manually.

Appreciate your hard work! Feel free to close without comment :)

timhaywood avatar Jun 07 '22 11:06 timhaywood