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/built/xhr'. CommonJS or AMD dependencies can cause optimization bailouts. #213

Open minomikula opened 2 years ago

minomikula commented 2 years ago

Expected Behavior

[REQUIRED] Describe expected behavior

No compilation warning in Angular >10

Describe the problem

[REQUIRED] Actual Behavior

In related issue #181 it was suggested:

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

So I tried to do import { Requestor } from '@openid/appauth/built/xhr';

but still on compilation there is warning: .../auth.module.ts depends on '@openid/appauth/built/xhr'. CommonJS or AMD dependencies can cause optimization bailouts.

[REQUIRED] Steps to reproduce the behavior

[REQUIRED] Environment