fix source maps for non-commonjs configurations

this method allows custom wrapper functions to work the same way as before (i.e. without special source node handling)