Skip to content

Commit

Permalink
rename source map prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Apr 30, 2024
1 parent 2c98c11 commit 13e6e20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next-swc/crates/napi/src/next_api/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ use turbopack_binding::{
issue::PlainIssue,
source_map::Token,
version::{PartialUpdate, TotalUpdate, Update, VersionState},
SOURCE_MAP_PREFIX,
},
ecmascript_hmr_protocol::{ClientUpdateInstruction, ResourceIdentifier},
trace_utils::{
Expand Down Expand Up @@ -921,7 +922,7 @@ pub async fn project_trace_source(
}
};

let Some(source_file) = original_file.strip_prefix("/turbopack/") else {
let Some(source_file) = original_file.strip_prefix(SOURCE_MAP_PREFIX) else {
bail!("Original file ({}) outside project", original_file)
};

Expand Down

0 comments on commit 13e6e20

Please sign in to comment.