8.5.2 FP1 Client-Side Javascript Script Library Validation

I have a number of script libraries that include Dojo-related code, in this particular scenario it’s for adding a loading mask over the page. Since installing FP1 these now show errors saying dojo cannot be resolved, dijit cannot be resolved, require(String) is undefined.

Obviously when this script library is compiled in an XPage and dojoParseOnLoad is true, it’s not going to throw any errors. But within the script library it’s throwing errors. Is there any way to prevent these errors showing and being triggered every time the application is opened? It’s not efficient to import the relevant dojo files into the script library.