-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"CommonJS or AMD dependencies can cause optimization bailouts" seen during angular build #260
Comments
Thanks for submitting @seth-church . Can you try importing under the |
Updated the import to: Now seeing: Warning: /path/goes/here/node_modules/@twilio/voice-sdk/esm/twilio/uuid.js depends on 'md5'. CommonJS or AMD dependencies can cause optimization bailouts. |
Thanks for trying @seth-church . We'll put this under our radar. |
After doing an angular update, seeing these warnings: Warning: /Users/sethcall/Projects/areabookweb/node_modules/@twilio/voice-sdk/esm/twilio/device.js depends on 'loglevel'. CommonJS or AMD dependencies can cause optimization bailouts. Thought you might like to be aware. Not seeing the warning about md5 now. |
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.
The text was updated successfully, but these errors were encountered: