Is Webpack 5 compatible with the arcot.js file?
search cancel

Is Webpack 5 compatible with the arcot.js file?

book

Article ID: 406711

calendar_today

Updated On:

Products

CA Strong Authentication

Issue/Introduction

Can you confirm whether Webpack 5 is compatible with the arcot.js file shared?

Environment

Advanced Authentication

Resolution

The Advanced Authentication arcot.js is delivered as standalone JavaScript library to be included in the client application.

  • These files are usually meant to be consumed directly in the browser (via <script> tags) and are not designed to be bundled with Webpack (or similar tools) out of the box.

  • With Webpack 5, which enforces stricter handling of module formats (CommonJS vs. ES Module) and polyfills (e.g., for crypto, buffer), compatibility issues can arise if you try to import arcot.js directly into a Webpack bundle.

  • If you attempt to bundle it, you may need to:

    1. Treat arcot.js as an external / global script (exclude from Webpack bundling).

    2. Or wrap it in a small adapter module that exposes its functions in a Webpack-compatible way.

  • There is no official Broadcom Advanced Authentication release of arcot.js optimized for Webpack 5 at this time. Customers are expected to include the provided JS files as-is.

Conclusion:

  • arcot.js is not officially Webpack 5–compatible, but you can still use it alongside Webpack 5 by loading it as an external script or using a wrapper.