Skip to content

No way to output sourcemap correctly outside of root #254

@dcramer

Description

@dcramer

There does not seem to be a way to generate a sourcemap with the correct relative paths, but with an output directory that is absolute (as files then become labeled as absolute).

e.g.

I am in /foo/static/CACHE and I run:

uglifyjs sentry/scripts/sentry.core.js sentry/scripts/sentry.charts.js sentry/scripts/sentry.stream.js --source-map-url=legacy.min.map.js --source-map=/foo/static/sentry/scripts/legacy.min.map.js -o /foo/static/sentry/scripts/legacy.min.js

The generated sourcemap, no matter what I try, ends up with:

"file":"/foo/static/sentry/scripts/legacy.min.js"

When what I'm looking for is:

"file":"sentry/scripts/legacy.min.js"

(Or something at least related to source-map-root that's sensible)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions