0

由于 Angular 13 不再生产 UMD 捆绑包

命令

ng g ngx-build-plus:externals --project MY_PROJECT

当前创建一个无效的 angular.json(指向不存在的 UMD 捆绑包)。

这是angular.json中提到的 umd 包

"scripts": [
              "node_modules/rxjs/bundles/rxjs.umd.js",
              "node_modules/@angular/core/bundles/core.umd.js",
              "node_modules/@angular/common/bundles/common.umd.js",
              "node_modules/@angular/common/bundles/common-http.umd.js",
              "node_modules/@angular/compiler/bundles/compiler.umd.js",
              "node_modules/@angular/elements/bundles/elements.umd.js",
              "node_modules/@angular/platform-browser/bundles/platform-browser.umd.js",
              "node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js"
            ]

上述这些文件的替代文件是什么?有没有其他方法可以解决这个问题?

4

0 回答 0