Coder Social home page Coder Social logo

Comments (4)

appsforartists avatar appsforartists commented on August 23, 2024

still precompile other ES6 features to ES5 if it intends to support older browsers

@gaearon curious about your thoughts here. ES2015 has been well supported across browsers for years, so I'm not terribly inclined to translate our builds to ES5. The operative word in your docs is if, but I'm not sure if there's an alternative when a package doesn't support ES5 (other than to fork, as you mention later in those docs).

from midi.

appsforartists avatar appsforartists commented on August 23, 2024

I just looked at the module line, and it's pointing directly to our src folder, which makes me even less inclined to touch it.

from midi.

DrSkunk avatar DrSkunk commented on August 23, 2024

Hello @appsforartists

Would you like me to open the issue over at the React repository?

from midi.

appsforartists avatar appsforartists commented on August 23, 2024

If you want to, sure. It would be the create-react-app repo, and I don't know what they'd do. As I understand it, CRA is supposed to be a zero-config starter, which means there isn't a place to add exceptions.

But, requiring all dependencies to be ES5 seems heavyhanded, especially if you're importing from ES2015 modules. At the very least, I think they ought to fall back to main if module isn't ES5. (I'm still not convinced it makes any sense for them to require ES5 dependencies, but I don't know enough about that project to make a definitive statement.)

from midi.

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.