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)
Merge pull request #562 from es128/fix-sourcemaps

fix source maps for non-commonjs configurations