sourceMapBasepath accepts a function that returned the path