In general, how would one add a method defined in an ES6 module to the Monitor Function feature of Chrome Devtools? As such a method is not defined in the global scope, nor on the window object, how to target it for monitor()?
Specific to my situation, there is a Vuex mutation called setFoo() defined in mutations.js. This file is imported by a module that is then imported by another module. All this is compiled by Webpack. On localhost I have access to source maps, on the production webserver I do not.
How might one monitor invocations of setFoo() using DevTool's monitor() feature, either with or without a source map?