especially icon indicating copy to clipboard operation
especially copied to clipboard

Usage of let keywords prevents this package from being used in FF

Open bl-nero opened this issue 9 years ago • 4 comments

This, in turn, prevents me from using https://www.npmjs.com/package/array.prototype.includes.

bl-nero avatar Dec 28 '15 14:12 bl-nero

https://github.com/domenic/especially#usage-notes

https://www.npmjs.com/package/array.prototype.includes isn't meant to be used by people except those developing the specification for Array.prototype.includes.

domenic avatar Dec 28 '15 15:12 domenic

It is possible to compile especially to ES5 using babel@6, then it should run in browsers. In my experience, this has been working fine so far.

Perhaps we can even have an officially supported ES5 (compiled) version in the npm package. We should be able to run the same unit tests in the compiled version, running the tests in a pre-ES2015 environment such as Node 0.10 to ensure compatibility with ES5.

WDYT?

UltCombo avatar Dec 28 '15 18:12 UltCombo

That certainly isn't a priority for my uses of the project, but if it's something you're interested in, feel free.

domenic avatar Dec 28 '15 18:12 domenic

Sure, I have other priorities at the moment but may get to it sometime. Or we can delegate this to the consumers: most people consuming this package for such use cases are most likely using webpack or browserify, so it is should be as easy as adding the babel plugin to their workflow.

UltCombo avatar Dec 28 '15 18:12 UltCombo