-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sourcemaps): allow complex file extensions (#1976)
This PR enables users to pass a complex extension (e.g. .min.js or .arbitrary.string.here.myfiletype) to the sourcemaps inject command's --ext argument. Fixes GH-1975
- Loading branch information
1 parent
35bf497
commit 9a6f91b
Showing
8 changed files
with
41 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/integration/_cases/sourcemaps/sourcemaps-inject-complex-extension.trycmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
``` | ||
$ sentry-cli sourcemaps inject --ext="complex.js" --dry-run tests/integration/_fixtures/inject_complex_extension | ||
? success | ||
... | ||
Source Map Debug ID Injection Report | ||
Modified: [..] | ||
[..] - tests/integration/_fixtures/inject_complex_extension/hello.complex.js | ||
|
||
|
||
``` |
10 changes: 10 additions & 0 deletions
10
tests/integration/_cases/sourcemaps/sourcemaps-upload-complex-extension.trycmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
``` | ||
$ sentry-cli sourcemaps upload --ext="complex.js" tests/integration/_fixtures/inject_complex_extension | ||
? success | ||
... | ||
Source Map Upload Report | ||
Scripts | ||
~/hello.complex.js[..] | ||
- warning: [..] | ||
|
||
``` |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters