Skip to content

Invalid sourcemaps being created #700

@nzakas

Description

@nzakas

I've been using Uglify to generate source maps via the API, such as:

var result = uglify.minify(filename, { outSourceMap: mapFilename });

When I do this, the resulting sourcemap had the following errors:

  1. The file field is mapFilename instead of filename
  2. The filename in sources field contains extra path information, which confuses Dev tools (should have the path info as relative to file only)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions