Compare commits

...
3 changed files with 9 additions and 10 deletions

No files matched your search

@@ -537,7 +537,7 @@
margin: 0;
font-weight: 500;
unicode-bidi: plaintext;
color: var(--mention-color) !important;
color: var(--markup-mention-color, var(--mention-color)) !important;
background-color: var(--markup-mention-fill);
border: 0;
box-shadow: none;
@@ -585,7 +585,7 @@
.markup .mention.interactive.mentionActive,
.inlineFormat .mention.interactive.mentionActive {
background-color: var(--markup-interactive-hover-fill);
color: var(--text-link) !important;
color: var(--markup-mention-color, var(--text-link)) !important;
text-decoration: none;
}
@@ -210,6 +210,7 @@
.messageFailed {
--markup-link-color: var(--status-danger);
--markup-mention-color: var(--status-danger);
color: var(--status-danger);
}
+6 -8
View File
@@ -280,7 +280,6 @@ fn asset_manifest_entries(dist: &Path) -> Result<Vec<String>> {
);
let mut entries = collect_files(&assets_dir)?
.into_iter()
.filter(|path| !is_source_map_asset(path))
.map(|path| {
path.strip_prefix(dist)
.with_context(|| format!("Failed to relativize {}", path.display()))
@@ -291,12 +290,6 @@ fn asset_manifest_entries(dist: &Path) -> Result<Vec<String>> {
Ok(entries)
}
fn is_source_map_asset(path: &Path) -> bool {
path.extension()
.and_then(|ext| ext.to_str())
.is_some_and(|ext| ext.eq_ignore_ascii_case("map"))
}
async fn upload_assets_step() -> Result<()> {
let client = s3_client(Some(DEFAULT_S3_ENDPOINT)).await?;
let bucket = env::var("STATIC_BUCKET").unwrap_or_else(|_| DEFAULT_STATIC_BUCKET.to_string());
@@ -824,7 +817,12 @@ mod tests {
assert_eq!(
asset_manifest_entries(&dist).unwrap(),
vec!["assets/chunks/a.js", "assets/z.js"]
vec![
"assets/chunks/a.js",
"assets/chunks/a.js.map",
"assets/z.js",
"assets/z.js.map"
]
);
}