I am trying to write a package right now that needs to add some legacy javascript library that used to work by putting it into the client/compatibility folder.
How do I specify in the package.js file that a particular asset needs to be in compatibility mode?
should work, but it does not. This very same file fails when using in a package this way, but succeeds when adding to client/compatibility folder of the app.
Doesn’t anybody know how to include a 3rd party file in a package?
This is a jQuery extension. When the library is loaded, the function is there, but something inside the code hasn’t initialized properly. My suspicion that {bare: true} is not working is in the fact that when the library is in the client/compatibility folder it shows up in the list of resources in the browser, but when I api_add it, it shows up wrapped inside .js of my package.