Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add sourceMapIn option #827
However, then the outputted source maps reference the file that was created by concat, not the original files. It would be awesome if Babel could take in an existing source map while it does its transforms, so that the outputted source maps reference the original files rather than an intermediate file.
Is it possible to disable this option? For some reason I'm getting wonky sourcemaps as a result and I've had to downgrade to 4.6.6 (the sourcemap generated by babel references files that don't exist - the bug is probably something external to babel, and if not I'll raise an issue if I can track it down).
Because I typically have transformations after babel in any case (bundling, minification etc) I prefer to merge sourcemaps as a single step at the end of the build. If I comment out these lines everything works okay again.