Skip to content

Commit 2d81c6e

Browse files
committed
fix: resolve_relative_resource_path
1 parent 3071601 commit 2d81c6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/rspack_plugin_devtool/src/module_filename_helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn resolve_relative_resource_path(
4646
absolute_resource_path: &str,
4747
source_map_path: Option<&Utf8Path>,
4848
) -> Option<String> {
49-
if absolute_resource_path.starts_with("webpack/") {
49+
if absolute_resource_path.starts_with("webpack/runtime") {
5050
// Webpack runtime modules are virtual
5151
return Some(format!("webpack://{absolute_resource_path}"));
5252
}

0 commit comments

Comments
 (0)