Extend moduleExports option so it can also be a function to determine the exports value based on the filename