angular - ES2015 与 ESM2015

标签 angular ecmascript-6

我想了解 ES2015 和 ESM2015 之间的区别。我知道 ES2015 是 ES^ 标准,但最近在使用 ng build 编译我的 Angular 应用程序时我得到以下信息:Compiling @angular/core : es2015 as esm2015
我想知道为什么是ESM2015?它是缩小的 ES2015 文件吗?

最佳答案

根据documentation for Angular Package Format :

Short for ECMAScript Modules. A file containing statements that import and export symbols. This is identical to the definition of modules in the ECMAScript spec.

关于angular - ES2015 与 ESM2015,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61572153/

相关文章:

Angular 2.2 和 SystemJS : deploy RXJS

css - Angular 组件 jenkins 为 'auto' css 属性构建问题

angular - ng2-charts & chart.js - 更改背景颜色

javascript - 基于其中一个对象组合来自一组对象的数据

javascript - react 输入元素中的 "ReferenceError: getInput is not defined"

angular - 如何在 angular2 中使用 THREE.CSS3DRenderer

php - Angular 4 CLI - 从 PHP 文件获取响应?

javascript - 如何扩展通过 React.createClass 创建的 React 组件类

javascript - 根据条件在定义时添加数组元素

javascript - 将代码从 ES5 转换为 ES6 并导出未按预期工作