Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SourceMap not working with grunt-contrib-concat/grunt-contrib-uglify #89

Open
nishantkmr opened this issue Apr 11, 2018 · 3 comments
Open

Comments

@nishantkmr
Copy link

The grunt-babel plugin generates the .map files mapping back to the ES6 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.

@Waltari10
Copy link

Let me know if you found a solution for this. Thanks!

@Waltari10
Copy link

      options: {
        sourceMap: true,
        inputSourceMap: grunt.file.readJSON(env.MINIFIED_FILE_PATH + env.MINIFIED_FILE_NAME + '.js.map')
      },

This should work.

@rorysmorris
Copy link

If anyone stumbles across this hoping for a solution, I suggest looking at Prayag Verma's answer here: https://stackoverflow.com/questions/32571058/grunt-babel-multiple-files-and-preserve-source-mapping

BenJamin's comment (and jsbin link) on this answer helps, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants