Modify the require function defined in the wrapper so that it can used global dependencies