shouldn't this check if file.applySourceMap exists before calling it?