Coder Social home page Coder Social logo

Comments (5)

y-lohse avatar y-lohse commented on August 30, 2024

That's a good point and I haven't investigated it much.

I've mostly stuck to "simple" es6 features, such as classes and arrow functions. Those have been supported in evergreen browser for a while now, so firefox / chrome / opera / edge should be fine.

The problem may be with safari 9 & under, and IE 11 & under. For those cases, babel should indeed do the trick. It's actually already used, but I don't think it has any effect. I'll look into that.

Here's handy chart for es6 feature support, just in case :-).

And great to hear that export for web is comming to inky!

from inkjs.

joethephish avatar joethephish commented on August 30, 2024

Hrm. I released a new version of Inky today with the Export for web functionality. At the last minute I decided to try it on my phone (iOS, mobile safari), and it doesn't have support for the most basic of features that you mention: (arrow) => { functions }.

It was a shame that I had to add warning messages to the release mentioning that caveat. We should really work out how to translate these modern features into older JavaScript, since that's really cutting out a large portion of users... :-/

from inkjs.

y-lohse avatar y-lohse commented on August 30, 2024

No problem, I'm a bit busy at the moment but I will catch up with version 0.4 next week, and I'll have a look at properly using babel. Unless someone wants to give it a go before then :-)

from inkjs.

y-lohse avatar y-lohse commented on August 30, 2024

@joethephish I've published a new version with babel enabled, so things should now work on safari?

The only browser I have at hand that doesn't support these is IE11. It can now more or less run inkjs, though I found another error after doing the release. Let me know how it does for you :-)

from inkjs.

joethephish avatar joethephish commented on August 30, 2024

Fantastic, works great - thanks! Will update Inky :-)

from inkjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.