bolt-cep
bolt-cep copied to clipboard
Array destructuring transpiles into incompatible code
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 :)