Giter Site home page Giter Site logo

TODO: different level of browser support about new HOT 6 OPEN

3cp avatar 3cp commented on August 14, 2024 1
TODO: different level of browser support

from new.

Comments (6)

3cp avatar 3cp commented on August 14, 2024

Current scaffolding is updated to use ES2017 by default, which has native async/await support.

from new.

mikeesouth avatar mikeesouth commented on August 14, 2024

Any update on this? :D I created a site using the npx makes aurelia skeleton (using typescript + webpack) and it does not load in IE11. tsconfig.json targets ES2017 but changing that to es5 does not help since the deps aren't transpiled to es5. I get this error:

SCRIPT1002: Syntax error
entry-bundle.js (130,27)

The code that it can't handle is an arrow function imported from the @aurelia package (row 130 is the middle row with the arrow function):

function enableImprovedExpressionDebugging() {
    astTypeMap.forEach(x => { adoptDebugMethods(x.type, x.name); });
}

from new.

3cp avatar 3cp commented on August 14, 2024

There is nothing we can do in this repo, because currently Aurelia 2 npm packages dist files are not compiled to support IE11.

@fkleuver has plan to provide IE11 compatible dist files. But it's not a high priority now.

If your production app needs to support IE11, I am afraid Aurelia 2 is not the best choice, at least for now.

from new.

3cp avatar 3cp commented on August 14, 2024

It's not only transpiling to es5, but also many polyfills for IE11.
Especially Aurelia 2 uses reflect metadata APIs which is very new in JS standard.

from new.

fkleuver avatar fkleuver commented on August 14, 2024

There is nothing we can do in this repo, because currently Aurelia 2 npm packages dist files are not compiled to support IE11.

Correct, this is a problem to be solved in the aurelia repo. However, once we support IE11 we'll probably distribute those files separately because they would be limiting factors for performance and certain features (e.g. proxies). Will there be a facility to conditionally target one set of dist files vs. the other @3cp ?

from new.

3cp avatar 3cp commented on August 14, 2024

conditionally target one set of dist files

That's bundler's responsibility. Yes, all bundlers have some kind of custom config to support that.

from new.

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.