Skip to content

feat(cc-widgets): resolve webpack build failure for http/https modules#612

Merged
Shreyas281299 merged 1 commit intowebex:nextfrom
akulakum:FIX_BUILD_ISSUE
Feb 4, 2026
Merged

feat(cc-widgets): resolve webpack build failure for http/https modules#612
Shreyas281299 merged 1 commit intowebex:nextfrom
akulakum:FIX_BUILD_ISSUE

Conversation

@akulakum
Copy link
Contributor

@akulakum akulakum commented Feb 4, 2026

COMPLETES #https://jira-eng-sjc12.cisco.com/jira/browse/CAI-7419

This pull request addresses

A build failure in the CI/CD pipeline caused by Webpack 5 no longer including polyfills for Node.js core modules (http, https) by default. The eventsource library (dependency of @webex/cc-digital-channels) requires these modules, causing the cc-widgets package build to fail with "Module not found" errors.

by making the following changes

Added resolve.fallback configuration in packages/contact-center/cc-widgets/webpack.config.js to set http: false and https: false, instructing webpack to ignore these Node.js-specific modules since browsers have native EventSource API support.

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Tooling change
  • Internal code refactor

The following scenarios were tested

  • The testing is done with the amplify link
    < ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >

The GAI Coding Policy And Copyright Annotation Best Practices

  • GAI was not used (or, no additional notation is required)
  • Code was generated entirely by GAI
  • GAI was used to create a draft that was subsequently customized or modified
  • Coder created a draft manually that was non-substantively modified by GAI (e.g., refactoring was performed by GAI on manually written code)
  • Tool used for AI assistance (GitHub Copilot / Other - specify)
    • Github Copilot
    • Other - Please Specify
  • This PR is related to
    • Feature
    • Defect fix
    • Tech Debt
    • Automation

Checklist before merging

  • I have not skipped any automated checks
  • All existing and new tests passed
  • I have updated the testing document
  • I have tested the functionality with amplify link

Make sure to have followed the contributing guidelines before submitting.

@akulakum akulakum added the validated Indicates that the PR is ready for actions label Feb 4, 2026
@aws-amplify-us-east-2
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-612.d1b38q61t1z947.amplifyapp.com

@akulakum akulakum changed the title feat(cc-widgets): fix-build-pipeline-issue feat(cc-widgets): resolve webpack build failure for http/https modules Feb 4, 2026
@Shreyas281299 Shreyas281299 merged commit 18fcc01 into webex:next Feb 4, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

validated Indicates that the PR is ready for actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants