@@ -8,8 +8,8 @@ use rspack_core::{
8
8
process_export_info, property_access, property_name, string_of_used_name, AsContextDependency ,
9
9
Compilation , ConditionalInitFragment , ConnectionState , Dependency , DependencyCategory ,
10
10
DependencyCondition , DependencyConditionFn , DependencyId , DependencyTemplate , DependencyType ,
11
- ErrorSpan , ExportInfo , ExportInfoProvided , ExportNameOrSpec , ExportPresenceMode , ExportSpec ,
12
- ExportsInfo , ExportsOfExportsSpec , ExportsSpec , ExportsType , ExtendedReferencedExport ,
11
+ ExportInfo , ExportInfoProvided , ExportNameOrSpec , ExportPresenceMode , ExportSpec , ExportsInfo ,
12
+ ExportsOfExportsSpec , ExportsSpec , ExportsType , ExtendedReferencedExport ,
13
13
HarmonyExportInitFragment , ImportAttributes , InitFragmentExt , InitFragmentKey , InitFragmentStage ,
14
14
JavascriptParserOptions , ModuleDependency , ModuleGraph , ModuleIdentifier , NormalInitFragment ,
15
15
RealDependencyLocation , RuntimeCondition , RuntimeGlobals , RuntimeSpec , Template , TemplateContext ,
@@ -866,7 +866,7 @@ impl HarmonyExportImportedSpecifierDependency {
866
866
let parent_module_identifier = module_graph
867
867
. get_parent_module ( & self . id )
868
868
. expect ( "should have parent module for dependency" ) ;
869
- let mut diagnostic = if let Some ( span) = self . span ( )
869
+ let mut diagnostic = if let Some ( span) = self . range ( )
870
870
&& let Some ( parent_module) = module_graph. module_by_identifier ( parent_module_identifier)
871
871
&& let Some ( source) = parent_module. original_source ( ) . map ( |s| s. source ( ) )
872
872
{
@@ -1054,8 +1054,8 @@ impl Dependency for HarmonyExportImportedSpecifierDependency {
1054
1054
Some ( self . range . to_string ( ) )
1055
1055
}
1056
1056
1057
- fn span ( & self ) -> Option < ErrorSpan > {
1058
- Some ( ErrorSpan :: new ( self . range . start , self . range . end ) )
1057
+ fn range ( & self ) -> Option < & RealDependencyLocation > {
1058
+ Some ( & self . range )
1059
1059
}
1060
1060
1061
1061
fn category ( & self ) -> & DependencyCategory {
0 commit comments