Attached is a demo of the problem; 1 module + 1 app using that module
- Demo - Module - Global function not working in modules.json (4.5 KB)
- Demo - App - Global function not working in modules.json (7.3 KB)
Steps to reproduce
- Created a module
- Defined a global function
- Use that function in a query's transformer
- Run to see if it works correctly (preview not working as mentioned in another thread HERE)
- Create an app & add the module we just created
- We get an error
Error: window.functionIWantToReuse is not a function