Why does Angular build create files with 'es5' and 'es2015' but not 'es6' (or no suffix at all)?

前端 未结 3 1328
花落未央
花落未央 2021-02-19 05:43

I recently downloaded the Angular CLI (@angular/cli 9.0.1). I then proceeded to create a new application so that I could create a new Angular Element, package it up

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-19 06:24

    They are the same thing.

    6th Edition - ECMAScript 2015

    • 6th Edition ECMAScript -> ES6
    • ECMAScript 2015 -> ES2015

    Different names for the same thing. Angular has simply chosen to call it es2015.

提交回复
热议问题