@@ -24,8 +24,8 @@ type FxDashMap<K, V> = DashMap<K, V, FxBuildHasher>;
2424/// * <https://tc39.es/ecma262/#cyclic-module-record>
2525#[ derive( Default ) ]
2626pub struct ModuleRecord {
27- /// This module has no import / export statements
28- pub not_esm : bool ,
27+ /// This module has ESM syntax: ` import` and ` export`.
28+ pub has_module_syntax : bool ,
2929
3030 /// Resolved absolute path to this module record
3131 pub resolved_absolute_path : PathBuf ,
@@ -99,7 +99,7 @@ impl fmt::Debug for ModuleRecord {
9999 . unwrap_or_default ( ) ;
100100 let loaded_modules = format ! ( "{{ {loaded_modules} }}" ) ;
101101 f. debug_struct ( "ModuleRecord" )
102- . field ( "not_esm " , & self . not_esm )
102+ . field ( "has_module_syntax " , & self . has_module_syntax )
103103 . field ( "resolved_absolute_path" , & self . resolved_absolute_path )
104104 . field ( "requested_modules" , & self . requested_modules )
105105 . field ( "loaded_modules" , & loaded_modules)
@@ -434,7 +434,7 @@ impl ModuleRecord {
434434 _semantic : & Semantic ,
435435 ) -> Self {
436436 Self {
437- not_esm : other. not_esm ,
437+ has_module_syntax : other. has_module_syntax ,
438438 resolved_absolute_path : path. to_path_buf ( ) ,
439439 requested_modules : other
440440 . requested_modules
0 commit comments