In my project, there is a custom third-party library (a single build file), which they have created using a couple of non-AMD and AMD files. And most of the properties are exposed directly to window objects. In our project as per the new requirement, we have to load this third-party library in asynchronous mode using requireJS. I tried with shim configuration but am getting an error from third party library saying that globals/window, globals/documents are needed.
- How to resolve the above error in the current project without editing a third-party library? is it possible?
- How to consume this third party libs properties in the project, since all properties are exposed directly to window Object.
This is the error we are encountering now
Could anyone please help me with this? Thanks in Advance!
