Skip to content

Commit

Permalink
ref(sourcemaps): Reword "no sourcemap ref"
Browse files Browse the repository at this point in the history
Instead, this message now reads "no sourcemap found," which is hopefully clearer to users.

Fixes #1964
  • Loading branch information
szokeasaurusrex committed Dec 18, 2024
1 parent b42e559 commit 32fb960
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/utils/sourcemaps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ impl SourceMapProcessor {
pieces.push(format!("sourcemap at {}", style(sm_url).cyan()));
};
} else {
pieces.push("no sourcemap ref".into());
pieces.push("no sourcemap found".into());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Processing react-native sourcemaps for Sentry upload.
Source Map Upload Report
Scripts
~/react-native-xcode-bundle.js (sourcemap at react-native-xcode-bundle.map)
~/react-native-xcode-bundle.js.map (no sourcemap ref)
~/react-native-xcode-bundle.js.map (no sourcemap found)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/react-native-xcode-bundle.js.map)

```
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ Source Map Upload Report
Scripts
~/server/app/page.js (sourcemap at page.js.map)
~/server/chunks/1.js (sourcemap at 1.js.map)
~/server/chunks/flight-server-css-manifest.js (no sourcemap ref)
~/server/chunks/flight-server-css-manifest.js (no sourcemap found)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/server/chunks/flight-server-css-manifest.js)
~/server/dummy_embedded.js (embedded sourcemap)
~/server/edge-runtime-webpack.js (sourcemap at edge-runtime-webpack.js.map, debug id 2297b93d-928d-421e-8910-127c786382dd)
~/server/flight-manifest.js (no sourcemap ref)
~/server/flight-manifest.js (no sourcemap found)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/server/flight-manifest.js)
~/server/pages/_document.js (sourcemap at _document.js.map)
~/server/pages/api/hello.js (sourcemap at hello.js.map)
~/static/chunks/575-bb7d7e0e6de8d623.js (sourcemap at 575-bb7d7e0e6de8d623.js.map)
~/static/chunks/app/client/layout-ba9c3036fc0dba78.js (no sourcemap ref)
~/static/chunks/app/client/layout-ba9c3036fc0dba78.js (no sourcemap found)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/static/chunks/app/client/layout-ba9c3036fc0dba78.js)
~/static/chunks/app/client/page-d5742c254d9533f8.js (sourcemap at page-d5742c254d9533f8.js.map, debug id 2297b93d-928d-421e-8910-127c786382df)
~/static/chunks/app/head-172ad45600676c06.js (no sourcemap ref)
~/static/chunks/app/head-172ad45600676c06.js (no sourcemap found)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/static/chunks/app/head-172ad45600676c06.js)
~/static/chunks/pages/asdf-05b39167abbe433b.js (sourcemap at asdf-05b39167abbe433b.js.map)
Source Maps
Expand Down

0 comments on commit 32fb960

Please sign in to comment.