LWS-Compliant JavaScript Libraries

Most third-party libraries run as expected when Lightning Web Security (LWS) is enabled.

However, some libraries need minor changes. See Third-Party Library Considerations for LWS.

If the library isn’t compliant, ask the library maintainers to update the code to comply with LWS, or, if the project is open-source, contribute the changes yourself. Another option is to fork the repository, make the changes, and build your own version of the library. It's your responsibility to make sure any third-party libraries work with your Lightning components before deployment.