fixes multiple file being required from one dir

- previously was binding function, but file param needs to be before opts - { entry: true }
- this caused an error in browser-resolve which treated { entry: true } as a string