Code Monkey home page Code Monkey logo

Comments (6)

rdner avatar rdner commented on June 13, 2024

We have to come up with a list of Babel transformations according to the Node.js server-side JavaScript grammar.
It includes full ES6 support for versions >= 6.5 and >=7.6.
Also, partial support for ES2016.

Another useful list (w/o harmony flag)
http://node.green/

from catberry.

rdner avatar rdner commented on June 13, 2024

We also can use https://github.com/babel/babel-preset-env and dynamically decide what to support.

from catberry.

rdner avatar rdner commented on June 13, 2024

We're in a weird situation: we can't allow to use any preset because it would break the minification which is currently done by Uglify (because it does not support ES6). But we still can't use Babili because it's in beta.

So, we have to either use Babili and ignore its beta state or keep the current preset by default which can't be overwritten by .babelrc currently.

from catberry.

kalyanov avatar kalyanov commented on June 13, 2024

IE11 usage is still 3.1% — https://www.w3schools.com/Browsers/browsers_explorer.asp
IE11 es6 support is only 11% — https://kangax.github.io/compat-table/es6

It seems that babel-preset-env doesn't give any significant advantages today. But it's a little bit risky to use babili beta version.

I think, we have to wait one of this:

  • stable babili release
  • uglify harmony release
  • ie11 usage will drop at least to 1%

As it doesn't look like a breaking changes, we can use babel-preset-env later.

from catberry.

rdner avatar rdner commented on June 13, 2024

@kalyanov at least we can use the standard Babel preset by default and ignore IE <= 10. It won't break anything except the support of these browsers.

We can switch to Babili later without breaking changes, I presume.

from catberry.

kalyanov avatar kalyanov commented on June 13, 2024

Oh, yes. IE 10 is dead :)

from catberry.

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.