Skip to content

Update sourcemaps upload default extensions #1959

Closed

Description

@rodolfoBee

By default, the CLI injects debugIDs to files with extensions: .js, .mjs, .cjs

--ext <EXT>                  Set the file extensions of JavaScript files that are considered
                                   for injection.  This overrides the default extensions (js, cjs,
                                   mjs).  To add an extension, all default extensions must be
                                   repeated.  Specify once per extension.  Source maps are
                                   discovered via those files.

But the upload command only upload files ending in .js, .map, .jsbundle and .bundle:

--ext <EXT>
          Set the file extensions that are considered for upload. This overrides the default
          extensions. To add an extension, all default extensions must be repeated. Specify once per
          extension.
          Defaults to: `--ext=js --ext=map --ext=jsbundle --ext=bundle`

In cases where the minified files ends with .mjs or .cjs, the CLI will upload only source maps, as a result source map processing will fail due to missing minified files.

Solution: extend default upload extensions to .js, .mjs, .cjs, .map, .jsbundle, .bundle.

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Feb 27, 2024
  2. szokeasaurusrex commented on Feb 27, 2024

    @szokeasaurusrex
    Member

    Thanks for reporting this, looks like it should probably be a relatively simple fix

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Feb 27, 2024
  4. added a commit that references this issue on Feb 29, 2024
    5708458
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Bug

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions