openid / AppAuth-JS

JavaScript client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
Apache License 2.0
975 stars 162 forks source link

depends on '@openid/appauth'. CommonJS or AMD dependencies can cause optimization bailouts #181

Closed celvin closed 3 years ago

celvin commented 3 years ago

Expected Behavior

[REQUIRED] Describe expected behavior

When compiling in Angular 10, I'm getting the warning: '@openid/appauth'. CommonJS or AMD dependencies can cause optimization bailouts

Describe the problem

When compiling

[REQUIRED] Actual Behavior

Warning: /usr/src/app/src/app/app.module.ts depends on '@openid/appauth'. CommonJS or AMD dependencies can cause optimization bailouts. ck-servicemesh-webapp | For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

[REQUIRED] Steps to reproduce the behavior

npm install

[REQUIRED] Environment

tikurahul commented 3 years ago

The @openid/appauth import is an umbrella import for convenience. You can always just import the individual modules.