Skip to content

Use modules in common utils

Filipa Lacerda requested to merge 37220-es-modules into master

What does this MR do?

Removes utility functions from the global namespace and exports them to make it possible to only load each function in the page it's needed instead of loading them all in all the files.

For the functions in common_utils it does:

  • removes the iffe
  • exports them as modules
  • removes some of them from gl.utils namespace - we have a lot of spies depending on this and we need a new tool to make this spies
  • imports the modules in the files where they are used
  • updates some tests to not depend/fake results of the spies

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#37220 (closed)

Edited by Filipa Lacerda

Merge request reports