Skip to content

Add sourceMapIn option #827

Description

@bryanburgers

babel/grunt-babel#14 suggests using grunt-contrib-concat to concatenate multiple files before compiling with Babel.

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.

  • Many CSS-processor libraries deal with this by looking in a standard place for a map file (when loading style.css, look for original source maps at style.css.map).
  • Uglify deals with this using a sourceMapIn option.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions