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.
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:
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