Replies: 1 comment 1 reply
-
There's no way to exclude it, but if the swc minifier breaks your package, please file an issue |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am building an audio chatroom in Next.js. For the chatting and calling features, I am using Agora that makes use of the
agora-rtm-sdk
agora-rtm-sdk andagora-rtc-sdk-ng
agora-rtc packages.The issue comes in when I deploy to Vercel or any other hosting platform.
The
agora-rtm-sdk
package is not called at any point in my code, however theagora-rtc-sdk-ng
works wellAfter struggling for days, I figured out the issue was in the bundling using SWC.
This is my next.config.js file:
So I got the app to work by setting
swcMinify:false
However, this was just a band-aid solution and makes the app slow.
How can I omit the
agora-rtm-sdk
from being minified while minifying the rest of the app or how can I make sure that my package is not being "swallowed" by SWC?Any help will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions