Fix require function so dev tools work