Skip to content

Choose ES target level #14639

@pauldraper

Description

@pauldraper

It appears that Angular CLI outputs only in ES5.

I would like to be able to choose the ES target, e.g. ES2015.

This can produce smaller, faster, and more readable code.
(And yes, sources maps can account for the readability part, but they have their own sets of disadvantages, including terrible performance for the CLI.)

Compare

class A { example() { return 5 } }

and

A = function() {}; A.prototype.example = function() { return 5 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions