BUG: Global functions not working in module once the module is used in an app

Attached is a demo of the problem; 1 module + 1 app using that module

Steps to reproduce

  1. Created a module
  2. Defined a global function
  3. Use that function in a query's transformer
  4. Run to see if it works correctly (preview not working as mentioned in another thread HERE)
  5. Create an app & add the module we just created
  6. We get an error

Error: window.functionIWantToReuse is not a function

I think it's a known issue, same with any CSS styles you apply to your module