In my main.js, I have:
import listeners from "./listeners"
listeners.call(this)
and my listeners.js is:
import _ from "lodash"
const listeners = () => {
console.log("this", this)
}
export default listeners
When it runs, it doesn't have the right this value in the listeners function. What am I doing wrong?