I'm looking for a way to use the 6to5
transpiler in my grunt
build process, while still being able to map any minified files of the ES5 output back to the original ES6 source files.
The grunt-6to5
plugin only has a boolean sourceMap
option, which of course generates .map files mapping back to the ES5 source files. But when trying to combine this with grunt-contrib-concat
/grunt-contrib-uglify
, I can only get a mapping back to the ES5 output, not to the original ES6 sources.
Is there any way to accomplish what I'm trying to do?