File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
crates/rspack_plugin_javascript/src/parser_plugin
packages/rspack-test-tools/tests/configCases/lazy-barrel/basic Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ impl JavascriptParserPlugin for ESMImportDependencyParserPlugin {
78
78
) -> Option < bool > {
79
79
parser. last_esm_import_order += 1 ;
80
80
let attributes = import_decl. with . as_ref ( ) . map ( |obj| get_attributes ( obj) ) ;
81
- let mut dependency = ESMImportSideEffectDependency :: new (
81
+ let dependency = ESMImportSideEffectDependency :: new (
82
82
source. into ( ) ,
83
83
parser. last_esm_import_order ,
84
84
import_decl. span . into ( ) ,
@@ -88,14 +88,7 @@ impl JavascriptParserPlugin for ESMImportDependencyParserPlugin {
88
88
Some ( parser. source_map . clone ( ) ) ,
89
89
false ,
90
90
) ;
91
- if parser. compiler_options . experiments . lazy_barrel
92
- && parser
93
- . factory_meta
94
- . and_then ( |meta| meta. side_effect_free )
95
- . unwrap_or_default ( )
96
- {
97
- dependency. set_lazy ( ) ;
98
- }
91
+
99
92
parser. dependencies . push ( Box :: new ( dependency) ) ;
100
93
101
94
parser
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ const allModules = fs
15
15
const lazyModules = new Set (
16
16
[
17
17
"named-barrel/b.js" ,
18
- "named-barrel/d.js" ,
19
18
"mixed-barrel/a.js" ,
20
19
"mixed-barrel/b.js" ,
21
20
"star-barrel/c.js" ,
You can’t perform that action at this time.
0 commit comments