Skip to content

Fall back to co-located source maps in sourcemaps inject command #1846

@lforst

Description

@lforst

Based on the feedback in getsentry/sentry-javascript#9666 the CLI should fall back to looking for a generated file's source map in the colocated location when

  • the generated file doesn't have a sourceMapURL comment
  • or the source map can't be found at the location that the sourceMapURL comment points to.

An example of "co-location":

/some/folder
- /output/
  - /my-bundle.js
  - /my-bundle.js.map

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions