File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,9 @@ impl Rule for NoBarrelFile {
9696 let mut total: usize = 0 ;
9797
9898 for module_request in module_requests {
99+ // the own module is counted as well
100+ total += 1 ;
101+
99102 if let Some ( remote_module) =
100103 module_record. loaded_modules . read ( ) . unwrap ( ) . get ( module_request. name ( ) )
101104 {
Original file line number Diff line number Diff line change 11-- -
22source : crates / oxc_linter / src / tester .rs
33-- -
4- ⚠ oxc (no - barrel - file ): Barrel file detected , 6 modules are loaded .
4+ ⚠ oxc (no - barrel - file ): Barrel file detected , 10 modules are loaded .
55 ╭─[index .ts :1 :15 ]
66 1 │ export * from " ./deep/a.js" ;
77 · ──────┬──────
@@ -14,6 +14,6 @@ source: crates/oxc_linter/src/tester.rs
1414 · ╰── 1 modules
1515 4 │ export * from " ./deep/d.js" ;
1616 ╰────
17- help : Loading 6 modules is slow for runtimes and bundlers .
17+ help : Loading 10 modules is slow for runtimes and bundlers .
1818 The configured threshold is 1.
1919 See also : < https :// marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7>.
You can’t perform that action at this time.
0 commit comments