我想了解 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/