Angular库-项目构建警告

时间:2019-05-06 13:43:51

标签: angular angular7 angular-library

Building Angular Package
Building entry point 'test-lib'
Compiling TypeScript sources through ngc
Bundling to FESM2015
Bundling to FESM5
Bundling to UMD
No name was provided for external module '@auth0/angular-jwt' in output.globals – guessing 'angularJwt'
No name was provided for external module '@auth0/angular-jwt/src/jwthelper.service' in output.globals – guessing 'i2'
Minifying UMD bundle
WARN: Declaring m as function [0:55,8]
Copying declaration files
Writing package metadata
Removing scripts section in package.json as it's considered a potential security vulnerability.

我在做ng build test-lib时有此输出。

我尝试添加

"umdModuleIds": { "@auth0/angular-jwt": "angularJwt", "@auth0/angular-jwt/src/jwthelper.service": "jwthelper.service" }

删除No name was provided for external module是否正确?

WARN: Declaring m as function [0:55,8]是什么意思?

0 个答案:

没有答案