@@ -9,6 +9,7 @@ mod target;
99pub use builder_context:: BuilderContext ;
1010pub use devtool:: Devtool ;
1111use rspack_tasks:: CURRENT_COMPILER_CONTEXT ;
12+ use rspack_util:: fx_hash:: FxIndexMap ;
1213pub use target:: Targets ;
1314
1415macro_rules! d {
@@ -39,7 +40,6 @@ use builder_context::BuiltinPluginOptions;
3940use derive_more:: Debug ;
4041use devtool:: DevtoolFlags ;
4142use externals:: ExternalsPresets ;
42- use indexmap:: IndexMap ;
4343use regex:: Regex ;
4444use rspack_core:: {
4545 AssetParserDataUrl , AssetParserDataUrlOptions , AssetParserOptions , BoxPlugin , ByDependency ,
@@ -569,7 +569,7 @@ pub struct CompilerOptionsBuilder {
569569 /// The environment in which the code should run.
570570 target : Option < Targets > ,
571571 /// The entry point of the application.
572- entry : IndexMap < String , EntryDescription > ,
572+ entry : FxIndexMap < String , EntryDescription > ,
573573 /// External libraries that should not be bundled.
574574 externals : Option < Vec < ExternalItem > > ,
575575 /// The type of externals.
@@ -1382,11 +1382,10 @@ fn get_resolve_defaults(mode: Mode, target_properties: &TargetProperties, css: b
13821382
13831383 // Add CSS dependencies if enabled
13841384 if css {
1385- let mut style_conditions = vec ! [ "webpack" . to_string( ) ] ;
1386- style_conditions. push ( match mode {
1385+ let mut style_conditions = vec ! [ match mode {
13871386 Mode :: Development => "development" . to_string( ) ,
13881387 _ => "production" . to_string( ) ,
1389- } ) ;
1388+ } ] ;
13901389 style_conditions. push ( "style" . to_string ( ) ) ;
13911390
13921391 by_dependency. push ( (
@@ -2657,7 +2656,7 @@ impl OutputOptionsBuilder {
26572656 target_properties : Option < & TargetProperties > ,
26582657 is_affected_by_browserslist : bool ,
26592658 development : bool ,
2660- entry : & IndexMap < String , EntryDescription > ,
2659+ entry : & FxIndexMap < String , EntryDescription > ,
26612660 _future_defaults : bool ,
26622661 ) -> Result < OutputOptions > {
26632662 let tp = target_properties;
0 commit comments