twilio-voice.js icon indicating copy to clipboard operation
twilio-voice.js copied to clipboard

"CommonJS or AMD dependencies can cause optimization bailouts" seen during angular build

Open seth-church opened this issue 9 months ago • 4 comments

When building with angular 13, the following is reported:

Warning: /path/goes/here/twilio.service.ts depends on '@twilio/voice-sdk'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Note that the twilio.service.ts file contains: import { Call, Device } from '@twilio/voice-sdk';

We were seeing this issue on the version 1 package, twilio-client. We hoped this to be fixed with the version 2 package, @twilio/voice-sdk, but apparently it's not.

seth-church avatar Apr 29 '24 17:04 seth-church