Webdriver/Selenium allows you to execute some code in the context of the page it's testing.
It takes a string of JS or a function (which it .toStrings) as first arg.
Ideally one passes a function, since this allows syntax highlighting in the editor, etc.
However if you pass a function and you're using babel runtime transforms, the toStringed function will reference helpers like
_slicedToArray, which will not be defined when the function is executed in the top-level browser context.
Any suggestions on how to work around this while passing functions, without having to manually import the helpers required for each? Is there a way to inject all the babel helpers into window?